From a38216b3ffb472a802ad418e3615b32622da7988 Mon Sep 17 00:00:00 2001 From: Juergen Daubert Date: Fri, 11 Sep 2009 18:41:23 +0200 Subject: [PATCH] checkportstree: follow symlinks --- ports/checkportstree | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ports/checkportstree b/ports/checkportstree index ee61f51..aa39558 100755 --- a/ports/checkportstree +++ b/ports/checkportstree @@ -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