[Collab-qa-commits] r1019 - udd/src/udd
lucas at alioth.debian.org
lucas at alioth.debian.org
Fri Aug 8 20:30:56 UTC 2008
Author: lucas
Date: 2008-08-08 20:30:55 +0000 (Fri, 08 Aug 2008)
New Revision: 1019
Modified:
udd/src/udd/popcon_gatherer.py
Log:
renamed popcon_src_max to popcon_src, realy
Modified: udd/src/udd/popcon_gatherer.py
===================================================================
--- udd/src/udd/popcon_gatherer.py 2008-08-08 20:26:09 UTC (rev 1018)
+++ udd/src/udd/popcon_gatherer.py 2008-08-08 20:30:55 UTC (rev 1019)
@@ -34,7 +34,7 @@
raise aux.ConfigException, "packages-table not configured for source " + source
table = my_config['table']
- table_src_max = table + "_src_max"
+ table_src = table + "_src"
table_src_average = table + "_src_average"
cur = self.cursor()
@@ -44,7 +44,7 @@
popcon = gzip.open(my_config['path'])
cur.execute("DELETE FROM " + table)
- cur.execute("DELETE FROM " + table_src_max)
+ cur.execute("DELETE FROM " + table_src)
cur.execute("DELETE FROM " + table_src_average)
# used for ignoring ubuntu's broken popcon lines
@@ -69,8 +69,8 @@
cur.execute("DEALLOCATE pop_insert")
- #calculate _src_max and _src_avg
- cur.execute("PREPARE pop_insert AS INSERT INTO %s VALUES ($1, $2, $3, $4, $5, $6)" % table_src_max)
+ #calculate _src and _src_avg
+ cur.execute("PREPARE pop_insert AS INSERT INTO %s VALUES ($1, $2, $3, $4, $5, $6)" % table_src)
cur.execute("""
SELECT packages.source, max(insts) AS insts, max(vote) AS vote, max(olde) AS old,
max(recent) AS recent, max(nofiles) as nofiles
More information about the Collab-qa-commits
mailing list