summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJuergen Daubert <jue@jue.li>2010-01-25 12:27:12 +0100
committerJuergen Daubert <jue@jue.li>2010-01-25 12:27:12 +0100
commit5d0bd288df2e78bce7a075da6d0b109479437baa (patch)
tree59b7ecc179cd4d16dde075c7fd3158beafcb492a
parentb9bd92016c73a5061749c7ca034b419db5bafcec (diff)
downloadprt-utils-5d0bd288df2e78bce7a075da6d0b109479437baa.tar.gz
prt-utils-5d0bd288df2e78bce7a075da6d0b109479437baa.tar.xz
finddeps: make $pkgName exclusion more explicit
I stumbled over that with gphoto2 which depends on libgphoto2, but finddeps didn't show it because 'grep -v gphoto2' selects both ports whereas 'grep -v "\<gphoto2\>"' matches only ghpoto2.
-rwxr-xr-xfinddeps6
1 files changed, 3 insertions, 3 deletions
diff --git a/finddeps b/finddeps
index a997bfa..7d75688 100755
--- a/finddeps
+++ b/finddeps
@@ -3,9 +3,9 @@
# the output of ldd
#
# Johannes Winkelmann <jw at tks6 dot net>
-# awk stuff by Jürgen Daubert <jue at jue dot li>
+# awk stuff by Juergen Daubert <jue at jue dot li>
-version=1.7
+version=1.8
pkgdb="/var/lib/pkg/db"
export LD_LIBRARY_PATH=/usr/lib:/usr/X11/lib:$LD_LIBRARY_PATH
@@ -40,7 +40,7 @@ if [ $? -ne 0 ]; then
exit -3
fi
-depPkg=`printDep $pkgName |sort|uniq|grep -v $pkgName`
+depPkg=`printDep $pkgName |sort|uniq|grep -v "\<$pkgName\>"`
for p in $depPkg; do
echo -n $p

Generated by cgit