[Utnubu-commits] [SCM] udd-scripts branch, master, updated. 672c46f85459b161d454d3a21626313fb87ee600
David Paleino
dapal at debian.org
Tue Feb 15 20:39:04 UTC 2011
The following commit has been merged in the master branch:
commit 672c46f85459b161d454d3a21626313fb87ee600
Author: David Paleino <dapal at debian.org>
Date: Tue Feb 15 21:38:52 2011 +0100
Also include Ubuntu component
diff --git a/list-missing-packages.py b/list-missing-packages.py
index b619122..0afdd3e 100755
--- a/list-missing-packages.py
+++ b/list-missing-packages.py
@@ -23,7 +23,7 @@ def dictize(d):
conn = psycopg2.connect("service=udd")
cur = conn.cursor(cursor_factory=psycopg2.extras.RealDictCursor)
-cur.execute("""SELECT notcommon.source, version FROM (
+cur.execute("""SELECT notcommon.source, version, component FROM (
SELECT source FROM ubuntu_sources WHERE release = %s EXCEPT SELECT source FROM sources
) AS notcommon
INNER JOIN ubuntu_sources ON (
@@ -43,9 +43,9 @@ popcon_sources = cur.fetchall()
blacklisted = len(filter(lambda x: is_blacklisted(x), missing_sources))
sources = sorted(filter(lambda x: not is_blacklisted(x), missing_sources))
-table = '|= Source |= Ubuntu Version |\n'
+table = '|= Source |= Ubuntu Version |= Component |\n'
for i in sources:
- table += '| %s | %s |\n' % (i, missing_sources[i]['version'])
+ table += '| %s | %s | %s |\n' % (i, missing_sources[i]['version'], missing_sources[i]['component'])
f = open(outdir + 'missing/byname.creole', 'w')
t = open(tmpldir + 'missing-byname.tmpl')
--
UDD scripts
More information about the Utnubu-commits
mailing list