From 5e815a86c926f7b3cfaa57a7e8f57c147e83dce3 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Sat, 15 Dec 2012 09:25:59 +0100 Subject: [PATCH 1/1] dak/process_policy.py: handle rejecting the same package twice --- 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 ab58cfe1..ddd05b7c 100755 --- a/dak/process_policy.py +++ b/dak/process_policy.py @@ -81,7 +81,8 @@ def do_comments(dir, srcqueue, opref, npref, line, fn, transaction): if opref != npref: newcomm = npref + comm[len(opref):] - transaction.fs.move(os.path.join(dir, comm), os.path.join(dir, newcomm)) + newcomm = utils.find_next_free(os.path.join(dir, newcomm)) + transaction.fs.move(os.path.join(dir, comm), newcomm) ################################################################################ -- 2.39.2