[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] dak/process_upload.py: ignore non-existing files when rejecting



---
 dak/process_upload.py |    2 ++
 1 files changed, 2 insertions(+), 0 deletions(-)

diff --git a/dak/process_upload.py b/dak/process_upload.py
index 25f32b5..28a60a9 100755
--- a/dak/process_upload.py
+++ b/dak/process_upload.py
@@ -377,6 +377,8 @@ def real_reject(directory, upload, reason=None, notify=True):
     for fn in files:
         src = os.path.join(upload.directory, fn)
         dst = utils.find_next_free(os.path.join(rejectdir, fn))
+        if not os.path.exists(src):
+            continue
         fs.copy(src, dst)
 
     if upload.reject_reasons is not None:
-- 
1.7.2.5



Reply to: