Commit cf4b38b7 authored by Allan McRae's avatar Allan McRae
Browse files

Reset return value after failure to download tarball



Fixes FS#22181.
Signed-off-by: Allan McRae's avatarAllan McRae <allan@archlinux.org>
parent 568c7fe5
......@@ -160,8 +160,9 @@ update_tarball() {
if [ "$repo" == "${repo#!}" ]; then
echo " ==> ${repo}..."
ret=0
local ret
for mirror in ${mirrorlist[@]}; do
ret=0
tarball=$(echo $mirror | sed "s#\$repo#$repo#;s#\$arch#$ARCH#")
tarball="${tarball}/${repo}.abs.tar.gz"
protocol=$(echo $tarball | cut -f1 -d":")
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment