From 58007ff64839827d6039afd482c55e3589a199ca Mon Sep 17 00:00:00 2001 From: Tobias Klaus Date: Mon, 21 Aug 2023 21:32:27 +0200 Subject: [PATCH] increase backtracking --- gentooup.sh | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/gentooup.sh b/gentooup.sh index 01cc347..b957c19 100755 --- a/gentooup.sh +++ b/gentooup.sh @@ -14,6 +14,9 @@ CHROOTED=0 SYNC_COMMAND="emaint sync -a" +BACKTRACK_INTERACTIVE=30 # 10 is the default +BACKTRACK_BATCH=200 + int_handler() { exit 0 } @@ -98,6 +101,14 @@ while [[ $# -gt 0 ]]; do esac done +if [[ $INTERACTIVE == 1 ]] ; then + BACKTRACK="$BACKTRACK_INTERACTIVE" +else + BACKTRACK="$BACKTRACK_BATCH" +fi + +PORTAGE_OPTIONS+=( "--backtrack=$BACKTRACK" ) + if [[ $CHROOTED == 1 ]] ; then SYNC_COMMAND="" for repo in helpers meskal-overlay selba ; do