From 49f5b089d5245571287a84f9513cc970a54db2c1 Mon Sep 17 00:00:00 2001 From: Ansgar Burchardt Date: Mon, 9 Jul 2012 10:43:16 -0600 Subject: [PATCH] daklib/checks.py: add missing join --- daklib/checks.py | 1 + 1 file changed, 1 insertion(+) 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: -- 2.39.5