mirror of
https://github.com/moparisthebest/pacman
synced 2025-01-08 12:28:00 -05:00
FS #3289 fix from Dan McGee <dpmcgee@gmail.com>
This commit is contained in:
parent
b308f06a3a
commit
ff23064fa2
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user