From ff23064fa26f8aef2af0e858498cb1c8afee08d3 Mon Sep 17 00:00:00 2001 From: Aaron Griffin Date: Mon, 18 Dec 2006 17:45:16 +0000 Subject: FS #3289 fix from Dan McGee --- scripts/makepkg | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'scripts') 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 -- cgit v1.2.3-70-g09d2