From 3388a6723b0170fd91484320fdd74ba185f7b6e3 Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Sat, 14 Mar 2009 15:42:20 +0000 Subject: [PATCH] fix up SQL call (hackish) Signed-off-by: Mark Hymers --- daklib/dbconn.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/daklib/dbconn.py b/daklib/dbconn.py index c290b60f..2b13123e 100755 --- a/daklib/dbconn.py +++ b/daklib/dbconn.py @@ -548,11 +548,13 @@ class DBConn(Singleton): try: arch_id = self.get_architecture_id(package['Architecture']) - # Remove any already existing recorded files for this package + # Remove any already existing recorded files for this package c.execute("""DELETE FROM pending_content_associations WHERE package=%(Package)s AND version=%(Version)s - AND arch_id=%d""" % arch_id, package ) + AND arch_id=%(ArchID)s""", {'Package': package['Package'], + 'Version': package['Version'], + 'ArchID': arch_id}) for fullpath in fullpaths: (path, file) = os.path.split(fullpath) -- 2.39.5