From b8705d2b99c4e34ffdc33d483ca77fc8d403a193 Mon Sep 17 00:00:00 2001 From: Pete Fotheringham Date: Mon, 2 Sep 2024 21:57:15 +0100 Subject: [PATCH] Tweak calls to repo sync - add retry-fetches - -c to --current-branch --- src/new_build.sh | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/src/new_build.sh b/src/new_build.sh index 713e008..cb365dc 100755 --- a/src/new_build.sh +++ b/src/new_build.sh @@ -183,7 +183,7 @@ if [ "$LOCAL_MIRROR" = true ]; then fi if [ "$SYNC_MIRROR" = true ]; then echo ">> [$(date)] Syncing mirror repository" | tee -a "$repo_log" - repo sync "${jobs_arg[@]}" --force-sync --no-clone-bundle &>> "$repo_log" + repo sync "${jobs_arg[@]}" "${retry_fetches_arg[@]}" --force-sync --no-clone-bundle &>> "$repo_log" else echo ">> [$(date)] Sync mirror repository disabled" | tee -a "$repo_log" fi @@ -226,7 +226,7 @@ for codename in ${devices//,/ }; do # `repo sync` if [ "$CALL_REPO_SYNC" = true ]; then echo ">> [$(date)] Syncing branch repository" | tee -a "$repo_log" - repo sync "${jobs_arg[@]}" -c --force-sync &>> "$repo_log" + repo sync "${jobs_arg[@]}" "${retry_fetches_arg[@]}" --current-branch --force-sync &>> "$repo_log" else echo ">> [$(date)] Syncing branch repository disabled" | tee -a "$repo_log" fi @@ -299,9 +299,9 @@ for codename in ${devices//,/ }; do else echo ">> [$(date)] Preparing build environment disabled" fi - + userscriptfail=false - + # Call `before.sh` if [ -f /root/userscripts/before.sh ]; then echo ">> [$(date)] Running before.sh"