]> git.donarmstrong.com Git - dak.git/blobdiff - dak/export_suite.py
Use Package-List to look for NEW binaries.
[dak.git] / dak / export_suite.py
index 1c22f5e5a80667f5dca78c6e411f4f09f4c26187..23775583b67030b78da306e0b3e2440cc5c577e8 100644 (file)
@@ -79,7 +79,15 @@ def main(argv=None):
             af = session.query(ArchiveFile) \
                         .join(ArchiveFile.component).join(ArchiveFile.file) \
                         .filter(ArchiveFile.archive == suite.archive) \
-                        .filter(ArchiveFile.file == f).one()
+                        .filter(ArchiveFile.file == f).first()
+            # XXX: Remove later. There was a bug that caused only the *.dsc to
+            # be installed in build queues and we do not want to break them.
+            # The bug was fixed in 55d2c7e6e2418518704623246021021e05b90e58
+            # on 2012-11-04
+            if af is None:
+                af = session.query(ArchiveFile) \
+                            .join(ArchiveFile.component).join(ArchiveFile.file) \
+                            .filter(ArchiveFile.file == f).first()
             dst = os.path.join(directory, f.basename)
             if not os.path.exists(dst):
                 fs.copy(af.path, dst, symlink=symlink)