]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- add SourceK-md5 after SourceK, not before
authorMichal Moskal <michal@moskal.me>
Wed, 4 Jun 2003 13:27:33 +0000 (13:27 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.169

builder.sh

index 2f6112b28057ce0bfc100bbb1ae0f5d75c2676c3..a5b4aae0c56c245be2613242a61149f36bea0195 100644 (file)
@@ -473,9 +473,11 @@ get_files()
            then
                echo "Updating source-$srcno md5."
                md5=$(md5sum `nourl $i` | cut -f1 -d' ')
-               perl -i -ne 'print "# Source'$srcno'-md5:\t'$md5'\n" 
-                               if /^Source'$srcno'\s*:\s+/;
-                               print unless /^\s*#\s*Source'$srcno'-md5\s*:/i' \
+               perl -i -ne '
+                               print unless /^\s*#\s*Source'$srcno'-md5\s*:/i;
+                               print "# Source'$srcno'-md5:\t'$md5'\n" 
+                                       if /^Source'$srcno'\s*:\s+/;
+                               ' \
                                $SPECS_DIR/$SPECFILE
            fi
 
This page took 0.297425 seconds and 4 git commands to generate.