From c727648a04005123579911e3cddd3b9371d34dc2 Mon Sep 17 00:00:00 2001 From: fuzzyray Date: Sat, 16 Feb 2008 21:04:19 +0000 Subject: [PATCH] Apply patch to prevent false matches of object names. (Bug 196460) svn path=/; revision=463 --- trunk/src/revdep-rebuild/revdep-rebuild | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) 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 -- 2.26.2