From e2c30cbca96e5dc6f3ba2fd7d7988a4f447ad433 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Mon, 5 Jan 2015 23:08:04 +0100 Subject: [PATCH] process-policy: Rollback transaction if dry run is requested. --- dak/process_policy.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/dak/process_policy.py b/dak/process_policy.py index f053a6cf..612a6d87 100755 --- a/dak/process_policy.py +++ b/dak/process_policy.py @@ -108,6 +108,8 @@ def try_or_reject(function): real_comment_reject(upload, srcqueue, comments, transaction, notify=False) if not Options['No-Action']: transaction.commit() + else: + transaction.rollback() return wrapper ################################################################################ -- 2.39.5