[Collab-qa-commits] r1809 - udd/udd
Lucas Nussbaum
lucas at alioth.debian.org
Sat Sep 25 10:39:28 UTC 2010
Author: lucas
Date: 2010-09-25 10:39:27 +0000 (Sat, 25 Sep 2010)
New Revision: 1809
Modified:
udd/udd/hints_gatherer.py
Log:
hints: do shallow copy of dict
Modified: udd/udd/hints_gatherer.py
===================================================================
--- udd/udd/hints_gatherer.py 2010-09-25 10:25:27 UTC (rev 1808)
+++ udd/udd/hints_gatherer.py 2010-09-25 10:39:27 UTC (rev 1809)
@@ -112,13 +112,15 @@
h['source'] = src
if hint[0].versionmap.has_key(src):
h['version'] = hint[0].versionmap[src]
+ if h['version'] == '':
+ h['version'] = None
else:
h['version'] = None
if hint[0].archmap.has_key(src):
h['arch'] = ' '.join(hint[0].archmap[src])
else:
h['arch'] = None
- hs.append(h)
+ hs.append(h.copy())
cursor.executemany(query, hs)
cursor.execute("DEALLOCATE h_insert")
cursor.execute("ANALYZE hints")
More information about the Collab-qa-commits
mailing list