aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorkris <kris@FreeBSD.org>2004-11-25 08:08:31 +0800
committerkris <kris@FreeBSD.org>2004-11-25 08:08:31 +0800
commit065fa5ef5f0ce7323841fa617a60af74cffe3b80 (patch)
tree95320d7a14a6301a010bc37c07c5395b1cb63f78
parent25002c076e87f2acd437bcbd8b75ee8fdf58a082 (diff)
downloadfreebsd-ports-gnome-065fa5ef5f0ce7323841fa617a60af74cffe3b80.tar.gz
freebsd-ports-gnome-065fa5ef5f0ce7323841fa617a60af74cffe3b80.tar.zst
freebsd-ports-gnome-065fa5ef5f0ce7323841fa617a60af74cffe3b80.zip
Clean up the symlink in ${pb}/${arch}/${branch}/latest/${dir} when we find
a port that should not be listed here
-rwxr-xr-xTools/portbuild/scripts/prunefailure5
1 files changed, 5 insertions, 0 deletions
diff --git a/Tools/portbuild/scripts/prunefailure b/Tools/portbuild/scripts/prunefailure
index 46f172f33bd0..9b58940618c3 100755
--- a/Tools/portbuild/scripts/prunefailure
+++ b/Tools/portbuild/scripts/prunefailure
@@ -51,12 +51,15 @@ while read dir name ver olddate date count; do
if [ -z "$dir" -o -z "$name" -o -z "$ver" -o -z "$olddate" -o -z "$date" -o -z "$count" ]; then
echo Malformed entry "$dir|$name|$ver|$olddate|$date|$count"
+ # Clean up the 'latest error log' symlink
+ rm -f ${pb}/${arch}/${branch}/latest/${dir}
continue
fi
entry=$(grep "|/usr/ports/$dir|" $index)
if [ -z "$entry" ]; then
echo $dir not in index
+ rm -f ${pb}/${arch}/${branch}/latest/${dir}
continue
fi
@@ -64,11 +67,13 @@ while read dir name ver olddate date count; do
if [ -e "$home/packages/All/$newver${PKGSUFFIX}" ]; then
echo "$newver package exists, should not still be here!"
+ rm -f ${pb}/${arch}/${branch}/latest/${dir}
continue
fi
if grep -qxF $newver $home/duds.full; then
echo "$newver listed in duds, should not be here"
+ rm -f ${pb}/${arch}/${branch}/latest/${dir}
continue
fi