[Collab-qa-commits] r1105 - udd/src/udd
neronus-guest at alioth.debian.org
neronus-guest at alioth.debian.org
Sun Aug 17 11:31:34 UTC 2008
Author: neronus-guest
Date: 2008-08-17 11:31:33 +0000 (Sun, 17 Aug 2008)
New Revision: 1105
Modified:
udd/src/udd/packages_gatherer.py
Log:
Remove superfluous commit
Fill summary table only once
Modified: udd/src/udd/packages_gatherer.py
===================================================================
--- udd/src/udd/packages_gatherer.py 2008-08-17 11:03:16 UTC (rev 1104)
+++ udd/src/udd/packages_gatherer.py 2008-08-17 11:31:33 UTC (rev 1105)
@@ -1,5 +1,5 @@
# /usr/bin/env python
-# Last-Modified: <Sun Aug 10 12:11:38 2008>
+# Last-Modified: <Sun Aug 17 11:29:52 2008>
# This file is a part of the Ultimate Debian Database project
import debian_bundle.deb822
@@ -183,16 +183,13 @@
except IOError, (e, message):
print "Could not read packages from %s: %s" % (path, message)
cur.execute("DEALLOCATE package_insert")
- # Fill the summary tables
- cur.execute("TRUNCATE %s" % (table + '_summary'));
- cur.execute("""INSERT INTO %s SELECT DISTINCT ON (package, version,
- distribution, release, component) package, version, source,
- source_version, maintainer, distribution, release, component FROM %s""" %
- (table + '_summary', table));
+ # Fill the summary tables
+ cur.execute("TRUNCATE %s" % (table + '_summary'));
+ cur.execute("""INSERT INTO %s SELECT DISTINCT ON (package, version,
+ distribution, release, component) package, version, source,
+ source_version, maintainer, distribution, release, component FROM %s""" %
+ (table + '_summary', table));
-
- self.connection.commit()
-
self.print_warnings()
def print_warnings(self):
More information about the Collab-qa-commits
mailing list