From: Ansgar Burchardt Date: Mon, 7 Sep 2015 16:57:03 +0000 (+0200) Subject: Only copy existing byhand files. X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=4246596dd3110d6120ffdf0219e18b12e6ddfcbf;p=dak.git Only copy existing byhand files. --- 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