From: Ansgar Burchardt Date: Sat, 15 Dec 2012 08:25:59 +0000 (+0100) Subject: dak/process_policy.py: handle rejecting the same package twice X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5e815a86c926f7b3cfaa57a7e8f57c147e83dce3;p=dak dak/process_policy.py: handle rejecting the same package twice --- 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) ################################################################################