Skip to content

Commit 990de73

Browse files
committed
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 <[email protected]>
1 parent aa2a055 commit 990de73

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scripts/rsync-generation/mksnapshot.sh

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ BOOTSTRAP_SNAPSHOT=$( \
2222
sed -n 's/^.*PV="\([0-9]\+\)"\s*$/portage-\1.tar.bz2/p' \
2323
)
2424
if [[ ! -s "${BOOTSTRAP_SNAPSHOT}" ]] ; then
25-
curl -s -L "https://distfiles.prefix.bitzolder.nl/prefix/distfiles/${BOOTSTRAP_SNAPSHOT}" > "${BOOTSTRAP_SNAPSHOT}"
25+
curl -f -s -L "https://distfiles.prefix.bitzolder.nl/prefix/distfiles/${BOOTSTRAP_SNAPSHOT}" > "${BOOTSTRAP_SNAPSHOT}"
2626
fi
2727

2828
rm -Rf "${TMPDIR}"

0 commit comments

Comments
 (0)