Index: Tools/scripts/rmport =================================================================== --- Tools/scripts/rmport +++ Tools/scripts/rmport @@ -31,6 +31,7 @@ # Originally written by Vasil Dimov # Others: # Chris Rees +# Rene Ladan # # $FreeBSD$ # @@ -162,7 +163,7 @@ # check if some Makefiles mention the port to be deleted portdir_grep="^[^#].*/`basename ${catport}`([[:space:]]|/|$)" - r="`find ${PORTSDIR} -mindepth 2 -maxdepth 3 \ + r="`find -H ${PORTSDIR} -mindepth 2 -maxdepth 3 \ \( -name "Makefile*" -or -path "*Mk/*.mk" \) \ |xargs grep -EH "${portdir_grep}" \ |grep -vE "^(${rmcatports})" || :`" @@ -210,18 +211,16 @@ fi } -# query GNATS via query-pr-summary.cgi, format and return the result +# query GNATS via Bugzilla, format and return the result +# XXX rene: PRs are listed twice for now due to the HTML code of Bugzilla get_PRs_www() { catport=${1} synopsis=${2} - date_re='[0-9]{4}/[0-9]{2}/[0-9]{2}' - prnum_re='.+/[0-9]{5,6}' - synopsis_re='.{10,}' log "${catport}: getting PRs having ${synopsis} in the synopsis" - url="http://www.freebsd.org/cgi/query-pr-summary.cgi?text=${synopsis}" + url="https://bugs.freebsd.org/bugzilla/buglist.cgi?quicksearch=${synopsis}" raw="`fetch -q -T 20 -o - "${url}"`" @@ -231,28 +230,17 @@ fi printf "%s" "${raw}" \ - |sed -nE "s|.*>(${date_re})<.*>(${prnum_re})<.*>(${synopsis_re})