Commit 21e2047a authored by Vitaly Lipatov's avatar Vitaly Lipatov

rpmgs: add checking file exists after downloading

parent 22e32c9d
......@@ -68,6 +68,7 @@ get_archive()
[ "$URL" = "$GETSOURCE" ] && URL=${GETSOURCE/.tar/}
get_tarball "$URL.$1" || return
WEXT=`basename "$URL"`
test -f "$WEXT.$1" || return
[ "$1" = "tar.bz2" ] || echog -n "Converting to $WEXT.tar..."
}
......@@ -77,6 +78,7 @@ get_archive1()
URL=${GETSOURCE/.bz2/}
get_tarball "$URL$1" || return
WEXT=`basename "$URL"`
test -f "$WEXT" || return
echog -n "Converting to $WEXT.bz2..."
}
......
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