]> git.decadent.org.uk Git - dak.git/blobdiff - daklib/policy.py
Add by-hash support
[dak.git] / 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