]> git.pld-linux.org Git - packages/rpm.git/blobdiff - rpm-php-provides
- cleanup and fix: don't try free random pointers on rpmExpand error
[packages/rpm.git] / rpm-php-provides
index 55f3fb412021fc3955b1d9ce1933ba7671bb1947..11178bf3777d0515c32e85d900401202d9c25daf 100644 (file)
@@ -6,9 +6,9 @@ fi
 
 filelist=`echo $@`
 for i in $filelist; do
-       i=`echo $i | grep "\.php"`
+       i=`echo $i | grep "\.php$"`
        if [ -n "$i" ]; then
-               j=`cat $i |egrep -i "^Class" |cut -f 2 -d " "`
+               j=`cat $i |egrep  -i "^Class" |cut -f 2 -d " "| tr -d "\r"`
                if [ -n "$j" ]; then
                        for p in $j; do
                                echo "pear($p)"
This page took 0.022969 seconds and 4 git commands to generate.