From: Ansgar Burchardt Date: Sun, 4 Nov 2012 17:24:17 +0000 (+0100) Subject: dak/export_suite.py: add workaround to allow exporting broken build queues X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=2d3301ace41859dbc5b4cdfd7f14fbb0e5a7c11d;p=dak dak/export_suite.py: add workaround to allow exporting broken build queues --- diff --git a/dak/export_suite.py b/dak/export_suite.py index b39d343b..23775583 100644 --- a/dak/export_suite.py +++ b/dak/export_suite.py @@ -80,6 +80,14 @@ def main(argv=None): .join(ArchiveFile.component).join(ArchiveFile.file) \ .filter(ArchiveFile.archive == suite.archive) \ .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)