From ee2ca7524ae00bfa5479f59a5caf568f797c4fc1 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Wed, 15 Aug 2012 21:57:19 +0200 Subject: [PATCH] dak/process_policy.py: only remove changes entey for rejected uploads --- dak/process_policy.py | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/dak/process_policy.py b/dak/process_policy.py index 61c4ef39..3bde7252 100755 --- a/dak/process_policy.py +++ b/dak/process_policy.py @@ -232,7 +232,9 @@ def real_comment_reject(upload, srcqueue, comments, transaction, notify=True, ma if not Options["No-Action"]: Logger.log(["Policy Queue REJECT", srcqueue.queue_name, upload.changes.changesname]) + changes = upload.changes remove_upload(upload, transaction) + session.delete(changes) ################################################################################ @@ -252,7 +254,6 @@ def remove_upload(upload, transaction): fs.unlink(os.path.join(queuedir, upload.changes.changesname)) session.delete(upload) - session.delete(changes) session.flush() ################################################################################ -- 2.39.5