diff options
| author | Rene Ladan <rene@FreeBSD.org> | 2025-05-04 16:46:17 +0200 |
|---|---|---|
| committer | Rene Ladan <rene@FreeBSD.org> | 2025-05-04 16:48:16 +0200 |
| commit | 347df60edfb31ccd6a292dcbbc5c7bf1fc48838a (patch) | |
| tree | 9cc018aa20d59b5304994b11d41afa11d79aad5d /Tools/scripts | |
| parent | ports-mgmt/packagekit: Update to 1.3.1 (diff) | |
rmport: include category in PR search to signifcantly reduce false positives
Diffstat (limited to 'Tools/scripts')
| -rwxr-xr-x | Tools/scripts/rmport | 14 |
1 files 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 |
