[dak/master] fix undefined cursor
Signed-off-by: Mark Hymers <mhy@debian.org>
---
dak/process_unchecked.py | 1 +
1 files changed, 1 insertions(+), 0 deletions(-)
diff --git a/dak/process_unchecked.py b/dak/process_unchecked.py
index 403f140..b2097de 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 )
--
1.5.6.5
Reply to: