diff options
author | Juergen Daubert <jue@jue.li> | 2010-01-25 12:27:12 +0100 |
---|---|---|
committer | Juergen Daubert <jue@jue.li> | 2010-01-25 12:27:12 +0100 |
commit | 5d0bd288df2e78bce7a075da6d0b109479437baa (patch) | |
tree | 59b7ecc179cd4d16dde075c7fd3158beafcb492a | |
parent | b9bd92016c73a5061749c7ca034b419db5bafcec (diff) | |
download | prt-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-x | finddeps | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -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 |