From: Ansgar Burchardt Date: Mon, 9 Jul 2012 16:43:16 +0000 (-0600) Subject: daklib/checks.py: add missing join X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=49f5b089d5245571287a84f9513cc970a54db2c1;p=dak.git daklib/checks.py: add missing join --- diff --git a/daklib/checks.py b/daklib/checks.py index b8143b2b..f874eec2 100644 --- a/daklib/checks.py +++ b/daklib/checks.py @@ -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: