X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;ds=sidebyside;f=dak%2Fprocess_upload.py;h=4d1cbc2f6677da8d5ae58fe4c05ea2beef6b97f6;hb=b58218820ad1c3e0973aeb92727849f8195720be;hp=a4dcc2d21030e1bbcc4be7f4560662675a8f5c7e;hpb=9561bad73cc03eed7d192b7d357dc2927d74d1c8;p=dak.git diff --git a/dak/process_upload.py b/dak/process_upload.py index a4dcc2d2..4d1cbc2f 100755 --- a/dak/process_upload.py +++ b/dak/process_upload.py @@ -258,7 +258,7 @@ def action(u, session): for s in u.pkg.changes["distribution"].keys(): suite = get_suite(s, session) if suite.policy_queue: - if not chg or chg.approved_for_id != su.policy_queue.policy_queue_id: + if not chg or chg.approved_for_id != suite.policy_queue.policy_queue_id: # This routine will check whether the upload is a binary # upload when the source is already in the target suite. If # so, we skip the policy queue, otherwise we go there. @@ -293,6 +293,7 @@ def action(u, session): elif answer == 'A': if not chg: chg = u.pkg.add_known_changes(holding.holding_dir, session=session) + session.commit() u.accept(summary, short_summary, session) u.check_override() chg.clean_from_queue()