X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fdatabase.py;h=93d9ad5392fcc706a15b38be4a62615b4bf8f319;hb=425e44739cd77ffa01294f23e94ae7eabd5f5ec8;hp=76aecb25ac15e1fdb751e0b02ad14a12c9191031;hpb=0df7a1c2ee06e051604c3e561cec4d3b284fd92c;p=dak.git diff --git a/daklib/database.py b/daklib/database.py index 76aecb25..93d9ad53 100755 --- a/daklib/database.py +++ b/daklib/database.py @@ -848,13 +848,13 @@ def copy_temporary_contents(package, version, arch, deb, reject): # first see if contents exist: - arch_id = get_architecture_id (architecture) + arch_id = get_architecture_id (arch) exists = projectB.query("""SELECT 1 FROM pending_content_associations WHERE package='%s' AND version='%s' AND architecture=%d LIMIT 1""" - % package, version, arch_id ).getresult() + % (package, version, arch_id) ).getresult() if not exists: # This should NOT happen. We should have added contents