--- revdep-rebuild_gentoolkit-0.2.3-r1 2008-01-23 16:11:38.000000000 -0500 +++ revdep-rebuild 2008-01-23 16:28:42.000000000 -0500 @@ -593,6 +593,10 @@ else if [ -s "$LLIST.3_rebuild" ] ; then set_trap "$LLIST.4_ebuilds" + # Make 3_rebuild have one (and only one) space at the end of each line + # to make sure the fgrep below doesn't match close, but different words + # For example, /usr/bin/dia matching /usr/bin/dialog + sed -i 's/[[:space:]]*$/ /' "$LLIST.3_rebuild" find /var/db/pkg -name CONTENTS | xargs fgrep -l -f $LLIST.3_rebuild | sed 's:/var/db/pkg/\(.*\)/CONTENTS:\1:' > $LLIST.4_ebuilds echo -e " done.\n ($LLIST.4_ebuilds)"