X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_unchecked.py;h=b2097def91f3982734df160c78815f6956587829;hb=95bb898d833ecac46a51984d9eddcfda29bc5302;hp=403f1400853fe1c7c2a86f574e351be7b3840437;hpb=62a9fbf198995587478b98571db7601ff6449b8c;p=dak.git diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py index 403f1400..b2097def 100755 --- a/dak/process_unchecked.py +++ b/dak/process_unchecked.py @@ -1058,6 +1058,7 @@ def check_signed_by_key(): if sponsored and not may_sponsor: reject("%s is not authorised to sponsor uploads" % (uid)) + cursor = DBConn().cursor() if not sponsored and not may_nmu: source_ids = [] cursor.execute( "SELECT s.id, s.version FROM source s JOIN src_associations sa ON (s.id = sa.source) WHERE s.source = %(source)s AND s.dm_upload_allowed = 'yes'", changes )