checkportstree: follow symlinks

This commit is contained in:
Juergen Daubert 2009-09-11 18:41:23 +02:00
parent e217c15d7a
commit a38216b3ff

View File

@ -34,7 +34,7 @@ clean() {
}
find_packages() {
find $PORTS_DIR -name '*.pkg.tar.gz' | sed 's|^.*/||;s|#.*$||' | sort > $PKGS_D
find -L $PORTS_DIR -name '*.pkg.tar.gz' | sed 's|^.*/||;s|#.*$||' | sort > $PKGS_D
cat $PKGS_D | uniq > $PKGS_U
}
@ -64,7 +64,7 @@ outdated_pkg() {
outdated() {
local prt otd
for prt in $(cat $ALL_PKGS); do
pushd $(find $PORTS_DIR -maxdepth 2 -name $prt -type d) > /dev/null
pushd $(find -L $PORTS_DIR -maxdepth 2 -name $prt -type d) > /dev/null
otd="$otd $(outdated_pkg)"
popd > /dev/null
done