Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 546996 | Differences between
and this patch

Collapse All | Expand All

(-)a/maintainer-needed.sh (-1 / +44 lines)
Line 0 Link Here
0
- 
1
#!/bin/bash
2
3
tmpfile="/tmp/mn-pkglist$$.tmp"
4
5
cleanup () {
6
	[[ -e ${tmpfile} ]] && rm ${tmpfile}
7
}
8
9
portageq --maintainer-email=maintainer-needed@gentoo.org -n > ${tmpfile} || { cleanup; exit 1; }
10
11
echo """
12
<html>
13
	<head>
14
		<style type=\"text/css\"> li a { font-family: monospace; display: block; float: left; min-width: %dem; }</style>
15
		<title>Orphan packages</title>
16
	</head>
17
	<body>
18
		List generated on $(date)<br/>
19
		Total packages: $(wc -l ${tmpfile} | cut -d ' '  -f1)<br/><br/>
20
		<table>
21
			<tr>
22
				<th>Package Name</th>
23
				<th>Open bugs</th>
24
			</tr>
25
"""
26
27
while read pkg; do
28
	echo """
29
			<tr>
30
				<td>${pkg}</td>
31
				<td><a href=\"https://bugs.gentoo.org/buglist.cgi?quicksearch=${pkg}\">Open Bugs</a></td>
32
			</tr>
33
	"""
34
done < ${tmpfile}
35
36
echo """
37
		</table>
38
	</body>
39
</html>
40
"""
41
42
cleanup
43
44
exit 0

Return to bug 546996