X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fprocess_policy.py;h=ddd05b7c65166f18b4011dafe47a5f82053ec7ac;hb=362ea497d3c9ee5891fca772132269d809a0547a;hp=ab58cfe1dce84ce2cc990c01b7987c7636220f66;hpb=354d46ad379c4c4e167d0fa7cdf7f9c34f3afbcd;p=dak.git 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) ################################################################################