1
0
mirror of https://github.com/moparisthebest/pacman synced 2025-01-09 04:57:59 -05: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 fi
msg " Downloading $file" msg " Downloading $file"
$FTPAGENT "$netfile" 2>&1 $FTPAGENT "$netfile" 2>&1
if [ ! -f "$file" ]; then # fix flyspray bug #3289
error "Failed to download $file" ftpret=$?
msg "Aborting..." if [ $ftpret -gt 0 ]; then
error "Failure while downloading $file"
msg "Aborting..."
rm "$file"
exit 1
exit 1 exit 1
fi fi
if [ "`id -u`" = "0" -a "$INFAKEROOT" != "1" ]; then if [ "`id -u`" = "0" -a "$INFAKEROOT" != "1" ]; then