aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRobin H. Johnson <robbat2@gentoo.org>2009-08-24 17:53:47 +0000
committerRobin H. Johnson <robbat2@gentoo.org>2009-08-24 17:53:47 +0000
commitf1d37718fd0b1c133c3af1d470101d22915a2c84 (patch)
tree2cd10c9e82416240dc1b5a0ac1b924ed942277f7
parentSkip causing the dupe warning. (diff)
downloadpackages-3-f1d37718fd0b1c133c3af1d470101d22915a2c84.tar.gz
packages-3-f1d37718fd0b1c133c3af1d470101d22915a2c84.tar.bz2
packages-3-f1d37718fd0b1c133c3af1d470101d22915a2c84.zip
Return the correct contents.
-rw-r--r--dbgenerator/database.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/dbgenerator/database.py b/dbgenerator/database.py
index 77bb6ee..57f5533 100644
--- a/dbgenerator/database.py
+++ b/dbgenerator/database.py
@@ -298,7 +298,8 @@ class SQLPackageDatabase(object):
sql = self.sql['UPDATE_versions']
self.cursor.execute(sql, (mtime, sha1, cpvi, ))
ret = (cpi, cpvi, mtime, sha1)
- #else:
+ else:
+ ret = (cpi, cpvi, mtime, sha1)
# msg = 'CPV for %s/%s-%s @ %d/%s tried to add duplicate data' % \
# (category, pn, pv, mtime, sha1)
# raise DBStateError(msg)