X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fdatabase.py;h=93d9ad5392fcc706a15b38be4a62615b4bf8f319;hb=425e44739cd77ffa01294f23e94ae7eabd5f5ec8;hp=49c18f9e3731b34850c9463672f30e3a26911733;hpb=b7e5c9a6deda1018da9023d1d01acec86e165ba4;p=dak.git diff --git a/daklib/database.py b/daklib/database.py index 49c18f9e..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 = database.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