From: fuzzyray Date: Wed, 28 Apr 2010 14:53:44 +0000 (-0000) Subject: Restore follow symlinks option (-L) to the find /var/db/pkg command so that revdep... X-Git-Tag: gentoolkit-0.3.0_rc11~38 X-Git-Url: http://git.tremily.us/gitweb.cgi?a=commitdiff_plain;h=40a177095ae03fc327471c6e26794b44b9ad91b4;p=gentoolkit.git Restore follow symlinks option (-L) to the find /var/db/pkg command so that revdep-rebuild works even when /var/db/pkg is a symlink. (Bug #317571) svn path=/trunk/gentoolkit/; revision=777 --- diff --git a/bin/revdep-rebuild b/bin/revdep-rebuild index b62dc61..80e791f 100755 --- a/bin/revdep-rebuild +++ b/bin/revdep-rebuild @@ -285,7 +285,7 @@ get_file_owner() { # Add a space to the end of each object name to prevent false # matches, for example /usr/bin/dia matching /usr/bin/dialog (bug #196460). # The same for "${rpath} ". - find /var/db/pkg -type f -name CONTENTS -print0 | + find -L /var/db/pkg -type f -name CONTENTS -print0 | xargs -0 grep -m 1 -Fl -e "${*} " -e "${rpath} " -e "${mlib} " | sed 's:/var/db/pkg/\(.*\)/CONTENTS:\1:' }