From: Ansgar Burchardt Date: Mon, 5 Jan 2015 22:08:04 +0000 (+0100) Subject: process-policy: Rollback transaction if dry run is requested. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=e2c30cbca96e5dc6f3ba2fd7d7988a4f447ad433;p=dak.git process-policy: Rollback transaction if dry run is requested. --- 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 ################################################################################