git: 347df60edfb3 - main - rmport: include category in PR search to signifcantly reduce false positives
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Sun, 04 May 2025 14:48:22 UTC
The branch main has been updated by rene:
URL: https://cgit.FreeBSD.org/ports/commit/?id=347df60edfb31ccd6a292dcbbc5c7bf1fc48838a
commit 347df60edfb31ccd6a292dcbbc5c7bf1fc48838a
Author: Rene Ladan <rene@FreeBSD.org>
AuthorDate: 2025-05-04 14:46:17 +0000
Commit: Rene Ladan <rene@FreeBSD.org>
CommitDate: 2025-05-04 14:48:16 +0000
rmport: include category in PR search to signifcantly reduce false positives
---
Tools/scripts/rmport | 14 ++++++--------
1 file changed, 6 insertions(+), 8 deletions(-)
diff --git a/Tools/scripts/rmport b/Tools/scripts/rmport
index 930dd60753fd..c2ea4c26037e 100755
--- a/Tools/scripts/rmport
+++ b/Tools/scripts/rmport
@@ -203,11 +203,10 @@ check_dep()
get_PRs()
{
catport=${1}
- synopsis=${2}
- log "${catport}: getting PRs having ${synopsis} in the synopsis"
+ log "${catport}: getting PRs having ${catport} in the synopsis"
- url="https://bugs.freebsd.org/bugzilla/buglist.cgi?quicksearch=${synopsis}"
+ url="https://bugs.freebsd.org/bugzilla/buglist.cgi?quicksearch=${catport}"
raw="$(fetch -q -T 20 -o - "${url}")"
@@ -225,12 +224,11 @@ get_PRs()
check_PRs()
{
catport=${1}
- synopsis=${2}
- PRs="$(get_PRs ${catport} "${synopsis}")" || exit
+ PRs="$(get_PRs ${catport})" || exit
if [ -n "${PRs}" ] ; then
- log "${catport}: PRs found, related to ${synopsis}:"
+ log "${catport}: related PRs found:"
printf "%s\n" "${PRs}" >&2
echo "you can skip ${catport} and continue with the rest or remove it anyway" >&2
@@ -389,7 +387,7 @@ if [ ${1} = "-p" ] ; then
if [ ${#} -ne 2 ] ; then
usage
fi
- get_PRs "dummy" ${2}
+ get_PRs ${2}
exit
fi
@@ -439,7 +437,7 @@ for catport in $* ; do
continue
fi
- if ! check_PRs ${catport} ${port} ; then
+ if ! check_PRs ${catport} ; then
continue
fi