+2005-06-28 Paul Varner <fuzzyray@gentoo.org>
+ * revdep-rebuild: Revert fix for bug 93574 as it can cause packages to be missed. (bug 97171)
+
2005-06-07 Paul Varner <fuzzyray@gentoo.org>
* revdep-rebuild: Delete temporary files if the environment does not match the previous
environment (bug 95274)
for i in $(echo $PRELIMINARY_SEARCH_DIRS)
do
[ "$i" = "-*" ] && break
- SEARCH_DIRS="$(echo $SEARCH_DIRS $(readlink -f $i))"
+ # Append a / at the end so that links and directories are treated the same by find
+ # Remove any existing trailing slashes to prevent double-slashes
+ SEARCH_DIRS="$(echo $SEARCH_DIRS ${i/%\//}/)"
done
unset SEARCH_DIRS_MASK