From: Ansgar Burchardt Date: Sat, 11 Aug 2012 17:40:11 +0000 (+0200) Subject: daklib/archive.py: also ignore files from .changes that do not exist X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=fd457c8da7edfeb309999bd1a316f632bf130951;p=dak daklib/archive.py: also ignore files from .changes that do not exist --- diff --git a/daklib/archive.py b/daklib/archive.py index 1887b784..3eb654a2 100644 --- a/daklib/archive.py +++ b/daklib/archive.py @@ -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