commit:     8d32ab3922bbfbce4501d299d728eee269c9ca32
Author:     Michał Górny <mgorny <AT> gentoo <DOT> org>
AuthorDate: Thu Dec 14 15:59:58 2017 +0000
Commit:     Michał Górny <mgorny <AT> gentoo <DOT> org>
CommitDate: Thu Dec 14 15:59:58 2017 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=8d32ab39

maintainer-needed: Include revdep counts in the list

 maintainer-needed.sh | 7 +++++++
 1 file changed, 7 insertions(+)

diff --git a/maintainer-needed.sh b/maintainer-needed.sh
index f86f6ea..221673c 100755
--- a/maintainer-needed.sh
+++ b/maintainer-needed.sh
@@ -4,6 +4,7 @@
 # Author: Markos Chandras <[email protected]>
 
 tmpfile="/tmp/mn-pkglist$$.tmp"
+rdepdir=$1
 
 cleanup () {
        [[ -e ${tmpfile} ]] && rm ${tmpfile}
@@ -25,6 +26,9 @@ echo """
                                <th>Package Name</th>
                                <th>Description</th>
                                <th>Open bugs</th>
+                               <th>R-revdeps</th>
+                               <th>D-revdeps</th>
+                               <th>P-revdeps</th>
                        </tr>
 """
 
@@ -34,6 +38,9 @@ while read pkg; do
                                <td>${pkg}</td>
                                <td>$(pquery --no-version --one-attr 
description ${pkg})</td>
                                <td><a 
href=\"https://bugs.gentoo.org/buglist.cgi?quicksearch=${pkg}\";>Open 
Bugs</a></td>
+                               <td><a href=\"genrdeps/rindex/${pkg}\">$(cat 
${rdepdir}/rindex/${pkg} 2>/dev/null | wc -l)</a></td>
+                               <td><a href=\"genrdeps/dindex/${pkg}\">$(cat 
${rdepdir}/dindex/${pkg} 2>/dev/null | wc -l)</a></td>
+                               <td><a href=\"genrdeps/pindex/${pkg}\">$(cat 
${rdepdir}/pindex/${pkg} 2>/dev/null | wc -l)</a></td>
                        </tr>
        """
 done < ${tmpfile}

Reply via email to