]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- properly set FROM_DISTFILES
authorankry <ankry@pld-linux.org>
Sun, 13 Jul 2003 21:51:34 +0000 (21:51 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.191

builder.sh

index acf5eb94d8428914be5ce0f2fe20c3f2bf2058e3..10a47231b5e43cd5b56cbc2affd01a5bcc6102e9 100644 (file)
@@ -479,7 +479,10 @@ get_files()
                            if [ `echo $url | grep -E 'ftp://'` ]; then
                                ${GETURI2} -O "$target" "$url"
                            fi
-                       test -s "$target" || rm -f "$target"
+                       if ! test -s "$target"; then
+                           rm -f "$target"
+                           FROM_DISTFILES=0
+                       fi
                    fi
                elif [ -z "$(src_md5 "$i")" -a "$NOCVS" != "yes" ]; then
                    # ( echo $i | grep -qvE '(ftp|http|https)://' ); -- if CVS should be used, but URLs preferred
This page took 0.050144 seconds and 4 git commands to generate.