]> git.pld-linux.org Git - packages/rpm-build-tools.git/commitdiff
- fixed md5 stuff with $ALWAYS_CVSUP!="yes"
authorTomasz Pala <gotar@pld-linux.org>
Sun, 1 Jun 2003 21:59:05 +0000 (21:59 +0000)
committercvs2git <feedback@pld-linux.org>
Sun, 24 Jun 2012 12:13:13 +0000 (12:13 +0000)
Changed files:
    builder.sh -> 1.167

builder.sh

index 5981eb055c81e5216947d3ee11c85addb27d72b8..1f09e4060c46d36099165be7d7491f023aafb531 100644 (file)
@@ -462,29 +462,29 @@ get_files()
                fi
 
 
-               srcno=$(src_no $i)
-               if [ ! -f "`nourl $i`" -a "$FAIL_IF_NO_SOURCES" != "no" ]; then
-                   Exit_error err_no_source_in_repo $i;
-               elif [ -n "$UPDATE5" ] && \
-                    ( ( [ -n "$ADD5" ] && echo $i | grep -q -E 'ftp://|http://|https://' && \
-                        [ -z "$(grep -E -i '^NoSource[         ]*:[    ]*'$i'([        ]|$)' $SPECS_DIR/$SPECFILE)" ] ) || \
-                      grep -q -i -E '^#[       ]*source'$(src_no $i)'-md5[     ]*:' $SPECS_DIR/$SPECFILE )
-               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' \
-                                $SPECS_DIR/$SPECFILE
-               fi
-               
-               if good_md5 "$i"; then
-                 :
-               else
-                 echo "MD5 sum mismatch.  Use -U to refetch sources,"
-                 echo "or -5 to update md5 sums, if you're sure files are correct."
-                 Exit_error err_no_source_in_repo $i
-               fi
+           fi
+           srcno=$(src_no $i)
+           if [ ! -f "`nourl $i`" -a "$FAIL_IF_NO_SOURCES" != "no" ]; then
+               Exit_error err_no_source_in_repo $i;
+           elif [ -n "$UPDATE5" ] && \
+               ( ( [ -n "$ADD5" ] && echo $i | grep -q -E 'ftp://|http://|https://' && \
+                   [ -z "$(grep -E -i '^NoSource[      ]*:[    ]*'$i'([        ]|$)' $SPECS_DIR/$SPECFILE)" ] ) || \
+               grep -q -i -E '^#[      ]*source'$(src_no $i)'-md5[     ]*:' $SPECS_DIR/$SPECFILE )
+           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' \
+                               $SPECS_DIR/$SPECFILE
+           fi
+
+           if good_md5 "$i"; then
+               :
+           else
+               echo "MD5 sum mismatch.  Use -U to refetch sources,"
+               echo "or -5 to update md5 sums, if you're sure files are correct."
+               Exit_error err_no_source_in_repo $i
            fi
        done
 
This page took 0.110436 seconds and 4 git commands to generate.