From: Mark Hymers Date: Wed, 8 Apr 2009 22:19:52 +0000 (+0100) Subject: fix undefined cursor X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=95bb898d833ecac46a51984d9eddcfda29bc5302;p=dak fix undefined cursor Signed-off-by: Mark Hymers --- 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 )