aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorgenone <genone@gentoo.org>2004-02-06 21:55:29 +0000
committergenone <genone@gentoo.org>2004-02-06 21:55:29 +0000
commit32fc6e39fdaf865d4a85e32ba212d182434a01a8 (patch)
tree2ffd2907d270740945acee9a393bb2c94f9900b7 /trunk/src/qpkg
parentfixes (diff)
downloadgentoolkit-32fc6e39fdaf865d4a85e32ba212d182434a01a8.tar.gz
gentoolkit-32fc6e39fdaf865d4a85e32ba212d182434a01a8.tar.bz2
gentoolkit-32fc6e39fdaf865d4a85e32ba212d182434a01a8.zip
fixing regexp for qpkg -f a bit
svn path=/; revision=76
Diffstat (limited to 'trunk/src/qpkg')
-rw-r--r--trunk/src/qpkg/qpkg4
1 files changed, 2 insertions, 2 deletions
diff --git a/trunk/src/qpkg/qpkg b/trunk/src/qpkg/qpkg
index 31b2e7f..06f1c32 100644
--- a/trunk/src/qpkg/qpkg
+++ b/trunk/src/qpkg/qpkg
@@ -293,7 +293,7 @@ if [ "${ffind}" ]; then
# package/CONTENTS containing <arg>
if [ "${fpat}" ]; then
dirs=`ls /var/db/pkg/${group}/*/CONTENTS \
- | xargs grep -l "${arg}" \
+ | xargs grep -Fl "${arg}" \
| xargs --no-run-if-empty -n 1 dirname`
else
# if the user didnt specify a full path assume they
@@ -301,7 +301,7 @@ if [ "${ffind}" ]; then
[ "${arg:0:1}" != "/" ] && arg="${PWD}/${arg}"
dirs=`ls /var/db/pkg/${group}/*/CONTENTS \
- | xargs grep -l " ${arg}\( .*\)*$" \
+ | xargs grep -Fl " ${arg}" \
| xargs --no-run-if-empty -n 1 dirname`
fi
ipak=`(