From mboxrd@z Thu Jan  1 00:00:00 1970
Return-Path: <gentoo-commits+bounces-795835-garchives=archives.gentoo.org@lists.gentoo.org>
Received: from lists.gentoo.org (pigeon.gentoo.org [208.92.234.80])
	by finch.gentoo.org (Postfix) with ESMTP id 3C0E4138CA2
	for <garchives@archives.gentoo.org>; Fri, 24 Apr 2015 16:38:41 +0000 (UTC)
Received: from pigeon.gentoo.org (localhost [127.0.0.1])
	by pigeon.gentoo.org (Postfix) with SMTP id C6FC2E06FE;
	Fri, 24 Apr 2015 16:38:39 +0000 (UTC)
Received: from smtp.gentoo.org (smtp.gentoo.org [140.211.166.183])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by pigeon.gentoo.org (Postfix) with ESMTPS id 66564E06FE
	for <gentoo-commits@lists.gentoo.org>; Fri, 24 Apr 2015 16:38:39 +0000 (UTC)
Received: from oystercatcher.gentoo.org (oystercatcher.gentoo.org [148.251.78.52])
	(using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits))
	(No client certificate requested)
	by smtp.gentoo.org (Postfix) with ESMTPS id 9FE50340B35
	for <gentoo-commits@lists.gentoo.org>; Fri, 24 Apr 2015 16:38:38 +0000 (UTC)
Received: from localhost.localdomain (localhost [127.0.0.1])
	by oystercatcher.gentoo.org (Postfix) with ESMTP id 51D0116A52
	for <gentoo-commits@lists.gentoo.org>; Fri, 24 Apr 2015 16:38:37 +0000 (UTC)
From: "Ulrich Müller" <ulm@gentoo.org>
To: gentoo-commits@lists.gentoo.org
Content-Transfer-Encoding: 8bit
Content-type: text/plain; charset=UTF-8
Reply-To: gentoo-dev@lists.gentoo.org, "Ulrich Müller" <ulm@gentoo.org>
Message-ID: <1429893468.87f00cc87400b9d0621d547f48911d0af6285596.ulm@gentoo>
Subject: [gentoo-commits] proj/qa-scripts:master commit in: /
X-VCS-Repository: proj/qa-scripts
X-VCS-Files: maintainer-needed.sh
X-VCS-Directories: /
X-VCS-Committer: ulm
X-VCS-Committer-Name: Ulrich Müller
X-VCS-Revision: 87f00cc87400b9d0621d547f48911d0af6285596
X-VCS-Branch: master
Date: Fri, 24 Apr 2015 16:38:37 +0000 (UTC)
Precedence: bulk
List-Post: <mailto:gentoo-commits@lists.gentoo.org>
List-Help: <mailto:gentoo-commits+help@lists.gentoo.org>
List-Unsubscribe: <mailto:gentoo-commits+unsubscribe@lists.gentoo.org>
List-Subscribe: <mailto:gentoo-commits+subscribe@lists.gentoo.org>
List-Id: Gentoo Linux mail <gentoo-commits.gentoo.org>
X-BeenThere: gentoo-commits@lists.gentoo.org
X-Archives-Salt: 446fa719-948b-4e75-8588-eb9a931dd0a8
X-Archives-Hash: d0c414643c0e8390b738e7ed36930838

commit:     87f00cc87400b9d0621d547f48911d0af6285596
Author:     Markos Chandras <hwoarang <AT> gentoo <DOT> org>
AuthorDate: Sat Apr 18 10:41:25 2015 +0000
Commit:     Ulrich Müller <ulm <AT> gentoo <DOT> org>
CommitDate: Fri Apr 24 16:37:48 2015 +0000
URL:        https://gitweb.gentoo.org/proj/qa-scripts.git/commit/?id=87f00cc8

maintainer-needed.sh: Add script to list maintainer-needed packages

Replacement for
https://wwwold.gentoo.org/proj/en/qa/treecleaners/maintainer-needed.xml

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

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