]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
wget -O is supposed to work like kind of shell redirect, so in case of failure 0...
authorArkadiusz Miśkiewicz <arekm@maven.pl>
Mon, 12 Oct 2009 09:18:01 +0000 (09:18 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.595

builder.sh

index 64e9d5148d4ea09f42196f7fbc2f796c3174c77c..8a7cb1c01cf8143dedc74fec78f416dad20d7b4f 100644 (file)
@@ -1073,6 +1073,7 @@ get_files() {
                                                                update_shell_title "${GETURI2%% *}: $url_attic"
                                                                ${GETURI2} ${OUTFILEOPT} "$target" "$url_attic"
                                                        fi
+                                                       test -s "$target" || rm -f "$target"
                                                fi
                                        fi
 
@@ -1104,6 +1105,7 @@ get_files() {
                                                update_shell_title "${GETURI2%% *}: $im"
                                                ${GETURI2} "$im" ${OUTFILEOPT} "$target"
                                        fi
+                                       test -s "$target" || rm -f "$target"
                                fi
 
                                if [ "$cvsup" = 1 ]; then
This page took 0.039099 seconds and 4 git commands to generate.