packages: builder - use retval
arekm
arekm at pld-linux.org
Sun Oct 23 12:35:55 CEST 2011
Author: arekm Date: Sun Oct 23 10:35:55 2011 GMT
Module: packages Tag: HEAD
---- Log message:
- use retval
---- Files affected:
packages:
builder (1.658 -> 1.659)
---- Diffs:
================================================================
Index: packages/builder
diff -u packages/builder:1.658 packages/builder:1.659
--- packages/builder:1.658 Sun Oct 23 12:34:03 2011
+++ packages/builder Sun Oct 23 12:35:49 2011
@@ -196,11 +196,13 @@
url="$1"
outfile="$2"
lftp -c "set net:max-retries $WGET_RETRIES; set http:user-agent \"$USER_AGENT\"; pget -n 10 -c \"$url\" -o \"$outfile.tmp\""
- if [ $? -eq 0 ]; then
+ retval=$?
+ if [ $retval -eq 0 ]; then
mv -f "$outfile.tmp" "$outfile"
else
rm -f "$outfile.tmp"
fi
+ return $retval
}
GETURI=download_lftp
GETURI2=$GETURI
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/builder?r1=1.658&r2=1.659&f=u
More information about the pld-cvs-commit
mailing list