packages: builder wget -O is supposed to work like kind of shell redirect, ...
arekm
arekm at pld-linux.org
Mon Oct 12 11:18:07 CEST 2009
Author: arekm Date: Mon Oct 12 09:18:07 2009 GMT
Module: packages Tag: HEAD
---- Log message:
wget -O is supposed to work like kind of shell redirect, so in case of failure 0 sized file will be created - delete it in such case
---- Files affected:
packages:
builder (1.594 -> 1.595)
---- Diffs:
================================================================
Index: packages/builder
diff -u packages/builder:1.594 packages/builder:1.595
--- packages/builder:1.594 Wed Sep 16 15:14:11 2009
+++ packages/builder Mon Oct 12 11:18:01 2009
@@ -1073,6 +1073,7 @@
update_shell_title "${GETURI2%% *}: $url_attic"
${GETURI2} ${OUTFILEOPT} "$target" "$url_attic"
fi
+ test -s "$target" || rm -f "$target"
fi
fi
@@ -1104,6 +1105,7 @@
update_shell_title "${GETURI2%% *}: $im"
${GETURI2} "$im" ${OUTFILEOPT} "$target"
fi
+ test -s "$target" || rm -f "$target"
fi
if [ "$cvsup" = 1 ]; then
================================================================
---- CVS-web:
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/builder?r1=1.594&r2=1.595&f=u
More information about the pld-cvs-commit
mailing list