[Collab-qa-commits] r1534 - in udd: sql udd
Lucas Nussbaum
lucas at alioth.debian.org
Fri Jul 24 10:33:28 UTC 2009
Author: lucas
Date: 2009-07-24 10:33:27 +0000 (Fri, 24 Jul 2009)
New Revision: 1534
Modified:
udd/sql/setup.sql
udd/sql/upgrade.sql
udd/udd/lintian_gatherer.py
Log:
add information column in lintian table
Modified: udd/sql/setup.sql
===================================================================
--- udd/sql/setup.sql 2009-07-24 10:31:32 UTC (rev 1533)
+++ udd/sql/setup.sql 2009-07-24 10:33:27 UTC (rev 1534)
@@ -289,7 +289,8 @@
package TEXT NOT NULL,
tag_type lintian_tagtype NOT NULL,
package_type TEXT,
- tag TEXT NOT NULL
+ tag TEXT NOT NULL,
+ information TEXT
);
GRANT SELECT ON lintian TO PUBLIC;
Modified: udd/sql/upgrade.sql
===================================================================
--- udd/sql/upgrade.sql 2009-07-24 10:31:32 UTC (rev 1533)
+++ udd/sql/upgrade.sql 2009-07-24 10:33:27 UTC (rev 1534)
@@ -183,3 +183,6 @@
AND key_type = 'keyring';
GRANT SELECT ON active_dds TO PUBLIC;
+
+-- 2009-07-24
+ALTER TABLE lintian ADD information text;
Modified: udd/udd/lintian_gatherer.py
===================================================================
--- udd/udd/lintian_gatherer.py 2009-07-24 10:31:32 UTC (rev 1533)
+++ udd/udd/lintian_gatherer.py 2009-07-24 10:33:27 UTC (rev 1534)
@@ -43,8 +43,8 @@
cur.execute("DELETE FROM %s" % my_config["table"])
cur.execute("""PREPARE lintian_insert
- AS INSERT INTO %s (package, package_type, tag, tag_type)
- VALUES ($1, $2, $3, $4)""" % (my_config['table']))
+ AS INSERT INTO %s (package, package_type, tag, tag_type, information)
+ VALUES ($1, $2, $3, $4, $5)""" % (my_config['table']))
lintian_data = open(my_config['path'])
line_number = 0
@@ -64,8 +64,8 @@
else:
pkg_type = 'NULL'
- cur.execute("EXECUTE lintian_insert (%s, %s, %s, %s)"\
- % (quote(pkg), pkg_type, quote(tag), quote(lintian_gatherer.code_to_tag_type_map[code])));
+ cur.execute("EXECUTE lintian_insert (%s, %s, %s, %s, %s)"\
+ % (quote(pkg), pkg_type, quote(tag), quote(lintian_gatherer.code_to_tag_type_map[code]), quote(extra)));
elif not lintian_gatherer.ignore_re.match(line):
print "Can't parse line %d: %s" % (line_number, line.rstrip())
More information about the Collab-qa-commits
mailing list