[Collab-qa-commits] r1265 - udd/udd

kroeckx at alioth.debian.org kroeckx at alioth.debian.org
Thu Sep 11 16:23:26 UTC 2008


Author: kroeckx
Date: 2008-09-11 16:23:25 +0000 (Thu, 11 Sep 2008)
New Revision: 1265

Modified:
   udd/udd/packages_gatherer.py
Log:
Use fields from proper table.


Modified: udd/udd/packages_gatherer.py
===================================================================
--- udd/udd/packages_gatherer.py	2008-09-10 22:18:10 UTC (rev 1264)
+++ udd/udd/packages_gatherer.py	2008-09-11 16:23:25 UTC (rev 1265)
@@ -188,11 +188,12 @@
 	cur.execute("DEALLOCATE package_insert")
     # Fill the summary tables
     cur.execute("DELETE FROM %s" % (table + '_summary'));
-    cur.execute("""INSERT INTO %s (package, version, distribution, release,
-      component) SELECT DISTINCT ON (package, version,
-      distribution, release, component) package, version, source,
-      source_version, maintainer, distribution, release, component FROM %s""" %
-      (table + '_summary', table));
+    cur.execute("""INSERT INTO %s (package, version, source, source_version,
+        maintainer, distribution, release, component)
+      SELECT DISTINCT ON (package, version, distribution, release, component)
+        package, version, source, source_version, maintainer, distribution,
+        release, component
+      FROM %s""" % (table + '_summary', table));
 
     self.print_warnings()
 




More information about the Collab-qa-commits mailing list