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

Andreas Tille tille at alioth.debian.org
Fri Feb 17 14:48:28 UTC 2012


Author: tille
Date: 2012-02-17 14:48:27 +0000 (Fri, 17 Feb 2012)
New Revision: 2153

Modified:
   udd/udd/packages_gatherer.py
Log:
Only delete the component translation that are currently imported


Modified: udd/udd/packages_gatherer.py
===================================================================
--- udd/udd/packages_gatherer.py	2012-02-17 10:51:57 UTC (rev 2152)
+++ udd/udd/packages_gatherer.py	2012-02-17 14:48:27 UTC (rev 2153)
@@ -195,8 +195,8 @@
       # For releases that have long descriptions in Packages and not in Translation,
       # add the description to the configured descriptions table.
       if self.add_descriptions:
-        cur.execute("DELETE FROM %s WHERE release = '%s' AND language = '%s'" %\
-          (src_cfg['descriptions-table'], src_cfg['release'], 'en'))
+        cur.execute("DELETE FROM %s WHERE release = '%s' AND component = '%s' AND language = '%s'" %\
+          (src_cfg['descriptions-table'], src_cfg['release'], comp, 'en'))
       for arch in src_cfg['archs']:
 	path = os.path.join(src_cfg['directory'], comp, 'binary-' + arch, 'Packages.gz')
 	try:




More information about the Collab-qa-commits mailing list