X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=daklib%2Fpolicy.py;h=aa5f12f0ac141e10e04552c11449ff842618cea2;hb=165bcf28c9bc21d449253f05efba0b5f39ff6abf;hp=3c986c8071d678d2e74187785e8d584dcd936958;hpb=bb5af8d977c37a187eaa1661bfc9f0f2512a0745;p=dak.git 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