]> err.no Git - dak/commitdiff
dak/process_upload.py: ignore non-existing files when rejecting
authorAnsgar Burchardt <ansgar@debian.org>
Sat, 11 Aug 2012 17:51:35 +0000 (19:51 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 12 Aug 2012 07:30:39 +0000 (09:30 +0200)
dak/process_upload.py

index 25f32b5842f16ecdb14c91764682b7000c9a2a0a..28a60a931073a2e83c8abd3ab79cf1c2434c0f25 100755 (executable)
@@ -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: