]> err.no Git - dak/commitdiff
daklib/checks.py: add missing join
authorAnsgar Burchardt <ansgar@debian.org>
Mon, 9 Jul 2012 16:43:16 +0000 (10:43 -0600)
committerAnsgar Burchardt <ansgar@debian.org>
Fri, 13 Jul 2012 17:02:57 +0000 (11:02 -0600)
daklib/checks.py

index b8143b2bd92fd43d47a08dbc8ecf4ed659d26448..f874eec240b74a7517139544a93b2d87b2bfe84e 100644 (file)
@@ -500,6 +500,7 @@ class VersionCheck(Check):
     def _highest_binary_version(self, session, binary_name, suite, architecture):
         db_binary = session.query(DBBinary).filter_by(package=binary_name) \
             .filter(DBBinary.suites.contains(suite)) \
+            .join(DBBinary.architecture) \
             .filter(Architecture.arch_string.in_(['all', architecture])) \
             .order_by(DBBinary.version.desc()).first()
         if db_binary is None: