From: fuzzyray Date: Sat, 16 Feb 2008 21:04:19 +0000 (-0000) Subject: Apply patch to prevent false matches of object names. (Bug 196460) X-Git-Tag: gentoolkit-0.2.4.3~50 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=c727648a04005123579911e3cddd3b9371d34dc2;p=gentoolkit.git Apply patch to prevent false matches of object names. (Bug 196460) svn path=/; revision=463 --- diff --git a/trunk/src/revdep-rebuild/revdep-rebuild b/trunk/src/revdep-rebuild/revdep-rebuild index 79699f3..7b0033d 100755 --- a/trunk/src/revdep-rebuild/revdep-rebuild +++ b/trunk/src/revdep-rebuild/revdep-rebuild @@ -274,8 +274,10 @@ get_args() { else get_file_owner() { local IFS=$'\n' + # ${*/%/ } adds a space to the end of each object name to prevent false + # matches, for example /usr/bin/dia matching /usr/bin/dialog (bug #196460). find -L /var/db/pkg -name CONTENTS -print0 | - xargs -0 grep -Fl "$*" | + xargs -0 grep -Fl "${*/%/ }" | sed 's:/var/db/pkg/\(.*\)/CONTENTS:\1:' } fi