From 95bb898d833ecac46a51984d9eddcfda29bc5302 Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Wed, 8 Apr 2009 23:19:52 +0100 Subject: [PATCH] fix undefined cursor Signed-off-by: Mark Hymers --- dak/process_unchecked.py | 1 + 1 file changed, 1 insertion(+) 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 ) -- 2.39.5