From 3bb8381e0ec6b18ae8b5b6fbbf10c266b2ab8082 Mon Sep 17 00:00:00 2001 From: Mark Hymers Date: Sat, 7 Nov 2009 14:19:15 +0000 Subject: [PATCH] pass arguments properly to add_known_changes Signed-off-by: Mark Hymers --- dak/import_known_changes.py | 2 +- dak/process_upload.py | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/dak/import_known_changes.py b/dak/import_known_changes.py index 84444ff1..da696aed 100755 --- a/dak/import_known_changes.py +++ b/dak/import_known_changes.py @@ -257,7 +257,7 @@ class ImportThread(threading.Thread): changesfile = os.path.join(to_import.dirpath, to_import.changesfile) changes.changes = parse_changes(changesfile, signing_rules=-1) changes.changes["fingerprint"] = check_signature(changesfile) - changes.add_known_changes(to_import.dirpath, self.session) + changes.add_known_changes(to_import.dirpath, session=self.session) self.session.commit() except InvalidDscError, line: diff --git a/dak/process_upload.py b/dak/process_upload.py index 155ba1dd..ec7fbd35 100755 --- a/dak/process_upload.py +++ b/dak/process_upload.py @@ -283,20 +283,20 @@ def action(u, session): u.do_reject(0, pi) elif answer == 'A': if not chg: - chg = u.pkg.add_known_changes(holding.holding_dir, session) + chg = u.pkg.add_known_changes(holding.holding_dir, session=session) u.accept(summary, short_summary, session) u.check_override() session.commit() u.remove() elif answer == 'P': if not chg: - chg = u.pkg.add_known_changes(holding.holding_dir, session) + chg = u.pkg.add_known_changes(holding.holding_dir, session=session) package_to_queue(u, summary, short_summary, policyqueue, chg, session) session.commit() u.remove() elif answer == queuekey: if not chg: - chg = u.pkg.add_known_changes(holding.holding_dir, session) + chg = u.pkg.add_known_changes(holding.holding_dir, session=session) QueueInfo[qu]["process"](u, summary, short_summary, chg, session) session.commit() u.remove() -- 2.39.5