commit: 10296d4bb3af8fd716065b2cdf3423c1274d075a
Author: Fabian Groffen <grobian <AT> gentoo <DOT> org>
AuthorDate: Mon Sep 11 10:37:44 2023 +0000
Commit: Fabian Groffen <grobian <AT> gentoo <DOT> org>
CommitDate: Mon Sep 11 10:37:44 2023 +0000
URL: https://gitweb.gentoo.org/repo/proj/prefix.git/commit/?id=10296d4b
scripts/rsync-generation/mksnapshot: only *add* snapshots
don't overwrite existing snapshots, only add so as to avoid changing
generated snapshots
Signed-off-by: Fabian Groffen <grobian <AT> gentoo.org>
scripts/rsync-generation/mksnapshot.sh | 4 +++-
1 file changed, 3 insertions(+), 1 deletion(-)
diff --git a/scripts/rsync-generation/mksnapshot.sh
b/scripts/rsync-generation/mksnapshot.sh
index d53d135693..e4db893b64 100755
--- a/scripts/rsync-generation/mksnapshot.sh
+++ b/scripts/rsync-generation/mksnapshot.sh
@@ -21,7 +21,9 @@ BOOTSTRAP_SNAPSHOT=$( \
grep -A1 MKSNAPSHOT-ANCHOR "${RSYNCTREE}"/scripts/bootstrap-prefix.sh |
\
sed -n 's/^.*PV="\([0-9]\+\)"\s*$/portage-\1.tar.bz2/p' \
)
-curl -s -L
"https://distfiles.prefix.bitzolder.nl/prefix/distfiles/${BOOTSTRAP_SNAPSHOT}"
> "${BOOTSTRAP_SNAPSHOT}"
+if [[ ! -s "${BOOTSTRAP_SNAPSHOT}" ]] ; then
+ curl -s -L
"https://distfiles.prefix.bitzolder.nl/prefix/distfiles/${BOOTSTRAP_SNAPSHOT}"
> "${BOOTSTRAP_SNAPSHOT}"
+fi
rm -Rf ${TMPDIR}
mkdir -p ${TMPDIR}