]> git.donarmstrong.com Git - dak.git/blobdiff - dak/process_policy.py
dak/process_policy.py: handle rejecting the same package twice
[dak.git] / dak / process_policy.py
index ab58cfe1dce84ce2cc990c01b7987c7636220f66..ddd05b7c65166f18b4011dafe47a5f82053ec7ac 100755 (executable)
@@ -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)
 
 ################################################################################