]> git.decadent.org.uk Git - dak.git/commitdiff
fix up SQL call (hackish)
authorMark Hymers <mhy@debian.org>
Sat, 14 Mar 2009 15:45:18 +0000 (15:45 +0000)
committerMark Hymers <mhy@debian.org>
Sat, 14 Mar 2009 15:45:18 +0000 (15:45 +0000)
Signed-off-by: Mark Hymers <mhy@debian.org>
daklib/dbconn.py

index 2b13123e50423f837a11ff61baba4811ffca6c72..9801fdfdf25017121d9804e11d16a1d3d7d2adc1 100755 (executable)
@@ -552,9 +552,9 @@ class DBConn(Singleton):
             c.execute("""DELETE FROM pending_content_associations
                          WHERE package=%(Package)s
                          AND version=%(Version)s
-                         AND arch_id=%(ArchID)s""", {'Package': package['Package'],
-                                                     'Version': package['Version'],
-                                                     'ArchID':  arch_id})
+                         AND architecture=%(ArchID)s""", {'Package': package['Package'],
+                                                          'Version': package['Version'],
+                                                          'ArchID':  arch_id})
 
             for fullpath in fullpaths:
                 (path, file) = os.path.split(fullpath)