From 40a177095ae03fc327471c6e26794b44b9ad91b4 Mon Sep 17 00:00:00 2001 From: fuzzyray Date: Wed, 28 Apr 2010 14:53:44 +0000 Subject: [PATCH] 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 --- bin/revdep-rebuild | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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:' } -- 2.26.2