Clean up the symlink in ${pb}/${arch}/${branch}/latest/${dir} when we find
a port that should not be listed here
This commit is contained in:
parent
57ae968445
commit
85fd51a02c
Notes:
svn2git
2021-03-31 03:12:20 +00:00
svn path=/head/; revision=122365
1 changed files with 5 additions and 0 deletions
|
@ -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
|
||||
|
||||
|
|
Loading…
Reference in a new issue