diff -ruN gentoolkit-0.2.2_pre2.orig/src/revdep-rebuild/revdep-rebuild gentoolkit-0.2.2_pre2/src/revdep-rebuild/revdep-rebuild --- gentoolkit-0.2.2_pre2.orig/src/revdep-rebuild/revdep-rebuild 2006-01-07 10:26:06.000000000 +0600 +++ gentoolkit-0.2.2_pre2/src/revdep-rebuild/revdep-rebuild 2006-01-10 13:28:23.000000000 +0600 @@ -527,11 +527,10 @@ else if [ -s "$LLIST.3_rebuild" ] ; then set_trap "$LLIST.4_ebuilds" - cat $LLIST.3_rebuild | sed 's/^/obj /;s/$/ /' | - ( - cd /var/db/pkg - fgrep -l -f - */*/CONTENTS - ) | sed s:/CONTENTS:: > $LLIST.4_ebuilds + cat $LLIST.3_rebuild | sed 's/^/obj /;s/$/ /' > $LLIST.3_rebuild.tmp + + find /var/db/pkg -name CONTENTS -type f -exec 'cat $LLIST.3_rebuild.tmp | fgrep -l {} \;' | sed s:/var/db/pkg/:: | sed s:/CONTENTS:: > $LLIST.4_ebuilds + echo -e " done.\n ($LLIST.4_ebuilds)" else echo " Nothing to rebuild"