[dak/master] dak/process_policy.py: handle rejecting the same package twice
---
dak/process_policy.py | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/dak/process_policy.py b/dak/process_policy.py
index ab58cfe..ddd05b7 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)
################################################################################
--
1.7.2.5
Reply to: