aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMarkos Chandras <hwoarang@gentoo.org>2015-04-18 11:41:25 +0100
committerUlrich Müller <ulm@gentoo.org>2015-04-24 18:37:48 +0200
commit87f00cc87400b9d0621d547f48911d0af6285596 (patch)
tree70c19b856e170f6cba417995e75ca1c2951392c8 /maintainer-needed.sh
parentAdd package list script from www.g.o (diff)
downloadqa-scripts-87f00cc87400b9d0621d547f48911d0af6285596.tar.gz
qa-scripts-87f00cc87400b9d0621d547f48911d0af6285596.tar.bz2
qa-scripts-87f00cc87400b9d0621d547f48911d0af6285596.zip
maintainer-needed.sh: Add script to list maintainer-needed packages
Replacement for https://wwwold.gentoo.org/proj/en/qa/treecleaners/maintainer-needed.xml
Diffstat (limited to 'maintainer-needed.sh')
-rwxr-xr-xmaintainer-needed.sh49
1 files changed, 49 insertions, 0 deletions
diff --git a/maintainer-needed.sh b/maintainer-needed.sh
new file mode 100755
index 0000000..e2c189b
--- /dev/null
+++ b/maintainer-needed.sh
@@ -0,0 +1,49 @@
+#!/bin/bash
+# Copyright 2015 Gentoo Foundation
+# Distributed under the terms of the GNU GPL version 2 or later
+# Author: Markos Chandras <hwoarang@gentoo.org>
+
+tmpfile="/tmp/mn-pkglist$$.tmp"
+
+cleanup () {
+ [[ -e ${tmpfile} ]] && rm ${tmpfile}
+}
+
+portageq --maintainer-email=maintainer-needed@gentoo.org -n > ${tmpfile} || { cleanup; exit 1; }
+
+echo """
+<html>
+ <head>
+ <style type=\"text/css\"> li a { font-family: monospace; display: block; float: left; }</style>
+ <title>Orphan packages</title>
+ </head>
+ <body>
+ List generated on $(date)<br/>
+ Total packages: <b>$(wc -l ${tmpfile} | cut -d ' ' -f1)</b><br/><br/>
+ <table>
+ <tr>
+ <th>Package Name</th>
+ <th>Description</th>
+ <th>Open bugs</th>
+ </tr>
+"""
+
+while read pkg; do
+ echo """
+ <tr>
+ <td>${pkg}</td>
+ <td>$(pquery --one-attr description ${pkg} | tail -n 1)</td>
+ <td><a href=\"https://bugs.gentoo.org/buglist.cgi?quicksearch=${pkg}\">Open Bugs</a></td>
+ </tr>
+ """
+done < ${tmpfile}
+
+echo """
+ </table>
+ </body>
+</html>
+"""
+
+cleanup
+
+exit 0