X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fdatabase.py;h=93d9ad5392fcc706a15b38be4a62615b4bf8f319;hb=6d052c1fd60a88eaa8250ed1927c59d89a80a775;hp=49c18f9e3731b34850c9463672f30e3a26911733;hpb=b58774e49de73e6ec962720cc2d86c0002036929;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