summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFabian Groffen <grobian@gentoo.org>2024-06-14 06:30:41 +0200
committerFabian Groffen <grobian@gentoo.org>2024-06-14 06:30:41 +0200
commit990de73f5a0673988dc0644293d3a51452da1458 (patch)
tree52ad23ca8e24bdb3c013da0d7f7d7fe18c0abdb0
parentsys-devel/binutils-config-5.1-r12: drop eutils usage (diff)
downloadprefix-990de73f5a0673988dc0644293d3a51452da1458.tar.gz
prefix-990de73f5a0673988dc0644293d3a51452da1458.tar.bz2
prefix-990de73f5a0673988dc0644293d3a51452da1458.zip
scripts/rsync-generation/mksnapshot: don't download a crap 404 message
Fail instead of downloading a 404/403/500 whatever message. Bug: https://bugs.gentoo.org/934308 Signed-off-by: Fabian Groffen <grobian@gentoo.org>
-rwxr-xr-xscripts/rsync-generation/mksnapshot.sh2
1 files changed, 1 insertions, 1 deletions
diff --git a/scripts/rsync-generation/mksnapshot.sh b/scripts/rsync-generation/mksnapshot.sh
index 4d45ef2727..9f0a26abbf 100755
--- a/scripts/rsync-generation/mksnapshot.sh
+++ b/scripts/rsync-generation/mksnapshot.sh
@@ -22,7 +22,7 @@ BOOTSTRAP_SNAPSHOT=$( \
sed -n 's/^.*PV="\([0-9]\+\)"\s*$/portage-\1.tar.bz2/p' \
)
if [[ ! -s "${BOOTSTRAP_SNAPSHOT}" ]] ; then
- curl -s -L "https://distfiles.prefix.bitzolder.nl/prefix/distfiles/${BOOTSTRAP_SNAPSHOT}" > "${BOOTSTRAP_SNAPSHOT}"
+ curl -f -s -L "https://distfiles.prefix.bitzolder.nl/prefix/distfiles/${BOOTSTRAP_SNAPSHOT}" > "${BOOTSTRAP_SNAPSHOT}"
fi
rm -Rf "${TMPDIR}"