git: d77a7f6319fb - main - Tools/scripts/rmport: disable just-removed false positive detection for now

From: Rene Ladan <rene_at_FreeBSD.org>
Date: Mon, 23 Jun 2025 19:01:03 UTC
The branch main has been updated by rene:

URL: https://cgit.FreeBSD.org/ports/commit/?id=d77a7f6319fb2599fcd2788f903c038063e54ead

commit d77a7f6319fb2599fcd2788f903c038063e54ead
Author:     Rene Ladan <rene@FreeBSD.org>
AuthorDate: 2025-06-23 19:00:16 +0000
Commit:     Rene Ladan <rene@FreeBSD.org>
CommitDate: 2025-06-23 19:00:16 +0000

    Tools/scripts/rmport: disable just-removed false positive detection for now
---
 Tools/scripts/rmport | 11 +++++++----
 1 file changed, 7 insertions(+), 4 deletions(-)

diff --git a/Tools/scripts/rmport b/Tools/scripts/rmport
index cca353759fe3..26e0ad332418 100755
--- a/Tools/scripts/rmport
+++ b/Tools/scripts/rmport
@@ -147,11 +147,14 @@ check_dep_core()
 	deps=$(grep -E "${pkgname}" ${INDEX} |grep -vE "^(${rmpkgs})" || :)
 	# Try to avoid false positives from INDEX when a port has just been
 	# removed but INDEX has not yet been updated.
+	# XXX this needs more work, we must look for the dependencies of catport in MOVED
 	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
+	#MOVED_line="$(grep "${catport}" "${PORTSDIR}/MOVED")"
+	#if [ -z "${MOVED_line}" ] ; then
+	#	in_MOVED=2 # dependent port not found
+	#elif [ "${TODAY}" = "$(echo "${MOVED_line}" | cut -d \| -f 3)" ] ; then
+	#	in_MOVED=1 # dependent port just removed
+	#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