]> err.no Git - dak/commitdiff
daklib/archive.py: try to get all source files from pool, even when listed in changes
authorAnsgar Burchardt <ansgar@debian.org>
Sat, 11 Aug 2012 17:42:32 +0000 (19:42 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 12 Aug 2012 07:30:39 +0000 (09:30 +0200)
daklib/archive.py

index 3eb654a231cf7a46d03c46c4deb19c380026c24c..2aaf86fd436d3cc6bb6ce9da2f4491d2c84be8ff 100644 (file)
@@ -634,7 +634,7 @@ class ArchiveUpload(object):
                 for f in source.files.itervalues():
                     src = os.path.join(self.original_directory, f.filename)
                     dst = os.path.join(self.directory, f.filename)
-                    if f.filename not in self.changes.files:
+                    if not os.path.exists(dst):
                         try:
                             db_file = self.transaction.get_file(f, source.dsc['Source'])
                             db_archive_file = session.query(ArchiveFile).filter_by(file=db_file).first()