little regexp fix, #47451
authorgenone <genone@gentoo.org>
Thu, 22 Apr 2004 02:20:31 +0000 (02:20 -0000)
committergenone <genone@gentoo.org>
Thu, 22 Apr 2004 02:20:31 +0000 (02:20 -0000)
svn path=/; revision=107

trunk/src/qpkg/qpkg

index 9fbb4f927be876324ad1fca92389c6758fbd64fc..e0fbdb8ddcb3c65f75cb3adda9337fa9b486eb1a 100644 (file)
@@ -301,7 +301,7 @@ if [ "${ffind}" ]; then
        # package/CONTENTS containing <arg>
        if [ "${fpat}" ]; then
                dirs=`ls /var/db/pkg/${group}/*/CONTENTS \
-               | xargs grep -l "${arg}" \
+               | xargs grep -l "${arg} " \
                | xargs --no-run-if-empty -n 1 dirname`
        else
                # if the user didnt specify a full path assume they
@@ -309,7 +309,7 @@ if [ "${ffind}" ]; then
                [ "${arg:0:1}" != "/" ] && arg="${PWD}/${arg}"
 
                dirs=`ls /var/db/pkg/${group}/*/CONTENTS \
-               | xargs grep -Fl " ${arg}" \
+               | xargs grep -Fl " ${arg} " \
                | xargs --no-run-if-empty -n 1 dirname`
        fi
        ipak=`(