]> git.decadent.org.uk Git - dak.git/commitdiff
Only copy existing byhand files.
authorAnsgar Burchardt <ansgar@debian.org>
Mon, 7 Sep 2015 16:57:03 +0000 (18:57 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Mon, 7 Sep 2015 16:57:03 +0000 (18:57 +0200)
daklib/policy.py

index 3c986c8071d678d2e74187785e8d584dcd936958..aa5f12f0ac141e10e04552c11449ff842618cea2 100644 (file)
@@ -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