Author: sparky                       Date: Wed Feb 24 17:32:46 2010 GMT
Module: packages                      Tag: HEAD
---- Log message:
- only allow SourceX-md5 with one "#" sign

---- Files affected:
packages:
   builder (1.609 -> 1.610) 

---- Diffs:

================================================================
Index: packages/builder
diff -u packages/builder:1.609 packages/builder:1.610
--- packages/builder:1.609      Fri Feb 19 13:14:27 2010
+++ packages/builder    Wed Feb 24 18:32:40 2010
@@ -802,7 +802,7 @@
                fi
        fi
 
-       source_md5=`grep -i "#[         ]*Source$no-md5[        ]*:" $SPECFILE 
| sed -e 's/.*://'`
+       source_md5=`grep -i "^#[        ]*Source$no-md5[        ]*:" $SPECFILE 
| sed -e 's/.*://'`
        if [ -n "$source_md5" ]; then
                echo $source_md5
        else
@@ -812,7 +812,7 @@
                else
                        # we have empty SourceX-md5, but it is still possible
                        # that we have NoSourceX-md5 AND NoSource: X
-                       nosource_md5=`grep -i "#[        ]*NoSource$no-md5[     
 ]*:" $SPECFILE | sed -e 's/.*://'`
+                       nosource_md5=`grep -i "^#[       ]*NoSource$no-md5[     
 ]*:" $SPECFILE | sed -e 's/.*://'`
                        if [ -n "$nosource_md5" -a -n "`grep -i "^NoSource:[    
 ]*$no$" $SPECFILE`" ] ; then
                                echo $nosource_md5
                        fi
================================================================

---- CVS-web:
    
http://cvs.pld-linux.org/cgi-bin/cvsweb.cgi/packages/builder?r1=1.609&r2=1.610&f=u

_______________________________________________
pld-cvs-commit mailing list
[email protected]
http://lists.pld-linux.org/mailman/listinfo/pld-cvs-commit

Reply via email to