]> git.decadent.org.uk Git - dak.git/commitdiff
dak/process_policy.py: handle rejecting the same package twice
authorAnsgar Burchardt <ansgar@debian.org>
Sat, 15 Dec 2012 08:25:59 +0000 (09:25 +0100)
committerAnsgar Burchardt <ansgar@debian.org>
Sat, 15 Dec 2012 08:25:59 +0000 (09:25 +0100)
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)
 
 ################################################################################