aboutsummaryrefslogtreecommitdiff
path: root/Tools/scripts
diff options
context:
space:
mode:
authorRene Ladan <rene@FreeBSD.org>2025-06-18 16:03:23 +0000
committerRene Ladan <rene@FreeBSD.org>2025-06-18 16:07:42 +0000
commitc04cc870330d5798b3ba24cd48e6d0dbd4f59732 (patch)
tree1557b8aa9d739e43d9be0c8e024bc1856252448b /Tools/scripts
parent26d6792317666d8cd8bdfffd692f30328c5cd219 (diff)
Diffstat (limited to 'Tools/scripts')
-rwxr-xr-xTools/scripts/rmport9
1 files changed, 8 insertions, 1 deletions
diff --git a/Tools/scripts/rmport b/Tools/scripts/rmport
index e861facb0b17..9e4e8d98a712 100755
--- a/Tools/scripts/rmport
+++ b/Tools/scripts/rmport
@@ -145,7 +145,14 @@ check_dep_core()
err=0
deps=$(grep -E "${pkgname}" ${INDEX} |grep -vE "^(${rmpkgs})" || :)
- if [ -n "${deps}" ] ; then
+ # Try to avoid false positives from INDEX when a port has just been
+ # removed but INDEX has not yet been updated.
+ in_MOVED=0
+ MOVED_line="$(grep "${catport}" MOVED)"
+ if [ -n "${MOVED_line}" ] && [ "${TODAY}" = "$(echo "${MOVED_line}" | cut -d \| -f 3)" ] ; then
+ in_MOVED=1
+ fi
+ if [ -n "${deps}" ] && [ ${in_MOVED} -eq 0 ] ; then
log "${catport}: some port(s) depend on ${pkgname}:"
# Skip dependencies in on-screen listing to avoid excessively
# long lines. Note that WWW should be field 13 according to