File 0996-gh-Update-RSYNC_ARGS-when-restor-loop-is-exited-earl.patch of Package erlang

From fd24126e4d0d3fe3011289325127ed7da9a247bc Mon Sep 17 00:00:00 2001
From: Lukas Larsson <lukas@erlang.org>
Date: Fri, 23 Feb 2024 16:59:31 +0100
Subject: [PATCH 1/2] gh: Update RSYNC_ARGS when restor loop is exited early

---
 .github/scripts/restore-from-prebuilt.sh | 3 +++
 1 file changed, 3 insertions(+)

diff --git a/.github/scripts/restore-from-prebuilt.sh b/.github/scripts/restore-from-prebuilt.sh
index 669aee9a38..688accfd4a 100755
--- a/.github/scripts/restore-from-prebuilt.sh
+++ b/.github/scripts/restore-from-prebuilt.sh
@@ -72,6 +72,7 @@ if [ -n "${ARCHIVE}" ]; then
     chmod -R g-w "${ARCHIVE_DIR}/"
 
     ## rlpgoD is the same as --archive, but without --times
+    ## If you update this, make sure to update the update after the loop as well
     RSYNC_ARGS=(-rlpgoD --itemize-changes --verbose --checksum --update "${EXCLUDE_BOOTSTRAP[@]}" "${ARCHIVE_DIR}/otp/" "${CACHE_DIR}/")
 
     CHANGES="${TMP_DIR}/changes"
@@ -159,6 +160,8 @@ if [ -n "${ARCHIVE}" ]; then
 
     echo "::group::{Sync changes over cached data}"
 
+    RSYNC_ARGS=(-rlpgoD --itemize-changes --verbose --checksum --update "${EXCLUDE_BOOTSTRAP[@]}" "${ARCHIVE_DIR}/otp/" "${CACHE_DIR}/")
+
     ## Now we do the actual sync
     rsync "${RSYNC_ARGS[@]}"
 fi
-- 
2.35.3

openSUSE Build Service is sponsored by