]> git.decadent.org.uk Git - dak.git/commitdiff
daklib/archive.py: also ignore files from .changes that do not exist
authorAnsgar Burchardt <ansgar@debian.org>
Sat, 11 Aug 2012 17:40:11 +0000 (19:40 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 12 Aug 2012 07:30:39 +0000 (09:30 +0200)
daklib/archive.py

index 1887b784a29c2f7d1b32b19a59049ac8f65956db..3eb654a231cf7a46d03c46c4deb19c380026c24c 100644 (file)
@@ -625,6 +625,8 @@ class ArchiveUpload(object):
             for f in self.changes.files.itervalues():
                 src = os.path.join(self.original_directory, f.filename)
                 dst = os.path.join(self.directory, f.filename)
+                if not os.path.exists(src):
+                    continue
                 fs.copy(src, dst)
 
             source = self.changes.source