]> git.decadent.org.uk Git - dak.git/commitdiff
process-policy: Rollback transaction if dry run is requested.
authorAnsgar Burchardt <ansgar@debian.org>
Mon, 5 Jan 2015 22:08:04 +0000 (23:08 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Mon, 5 Jan 2015 22:08:04 +0000 (23:08 +0100)
dak/process_policy.py

index f053a6cfc990317881b9edb986a6b8cb1cad7833..612a6d87a48b21c1131c1557d44e0c7b60a5a0fe 100755 (executable)
@@ -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
 
 ################################################################################