[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] 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 f053a6c..612a6d8 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
 
 ################################################################################
-- 
1.7.10.4


Reply to: