From 4246596dd3110d6120ffdf0219e18b12e6ddfcbf Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Mon, 7 Sep 2015 18:57:03 +0200 Subject: [PATCH] Only copy existing byhand files. --- daklib/policy.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/daklib/policy.py b/daklib/policy.py index 3c986c80..aa5f12f0 100644 --- a/daklib/policy.py +++ b/daklib/policy.py @@ -87,7 +87,7 @@ class UploadCopy(object): for byhand in self.upload.byhand: src = os.path.join(queue.path, byhand.filename) dst = os.path.join(directory, byhand.filename) - if not os.path.exists(dst) or not ignore_existing: + if os.path.exists(src) and (not os.path.exists(dst) or not ignore_existing): fs.copy(src, dst, mode=mode, symlink=symlink) # copy .changes -- 2.39.2