Send patches - preferably formatted by git format-patch - to patches at archlinux32 dot org.
summaryrefslogtreecommitdiff
path: root/scripts
diff options
context:
space:
mode:
Diffstat (limited to 'scripts')
-rwxr-xr-xscripts/makepkg10
1 files changed, 7 insertions, 3 deletions
diff --git a/scripts/makepkg b/scripts/makepkg
index 4f8a13e1..aa53990a 100755
--- a/scripts/makepkg
+++ b/scripts/makepkg
@@ -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