1
0
mirror of https://github.com/moparisthebest/pacman synced 2024-08-13 17:03:46 -04:00

FS #3289 fix from Dan McGee <dpmcgee@gmail.com>

This commit is contained in:
Aaron Griffin 2006-12-18 17:45:16 +00:00
parent b308f06a3a
commit ff23064fa2

View File

@ -568,9 +568,13 @@ for netfile in ${source[@]}; do
fi
msg " Downloading $file"
$FTPAGENT "$netfile" 2>&1
if [ ! -f "$file" ]; then
error "Failed to download $file"
msg "Aborting..."
# fix flyspray bug #3289
ftpret=$?
if [ $ftpret -gt 0 ]; then
error "Failure while downloading $file"
msg "Aborting..."
rm "$file"
exit 1
exit 1
fi
if [ "`id -u`" = "0" -a "$INFAKEROOT" != "1" ]; then