提交 3388a672 编写于 作者: M Mark Hymers

fix up SQL call (hackish)

Signed-off-by: NMark Hymers <mhy@debian.org>
上级 ea32360c
......@@ -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)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册