summaryrefslogtreecommitdiff
path: root/Tools
diff options
context:
space:
mode:
authorKris Kennaway <kris@FreeBSD.org>2004-11-25 00:08:31 +0000
committerKris Kennaway <kris@FreeBSD.org>2004-11-25 00:08:31 +0000
commit85fd51a02c1981cabd1be8e86530fe14207444a1 (patch)
treed14406bda8096286d7fdbe6b4e95b67192489fa1 /Tools
parentNew port kde-icons-gartoon-blue-svg version 1.3: KDE Gartoon Blue SVG iconset (diff)
Clean up the symlink in ${pb}/${arch}/${branch}/latest/${dir} when we find
a port that should not be listed here
Notes
Notes: svn path=/head/; revision=122365
Diffstat (limited to 'Tools')
-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