From: Chris Lamb Date: Fri, 30 Oct 2009 11:45:56 +0000 (+0000) Subject: Fix local variable in check-archive/check_override X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=899a64f834287209d05024012b934fcc788e2b60;p=dak Fix local variable in check-archive/check_override Signed-off-by: Chris Lamb --- diff --git a/dak/check_archive.py b/dak/check_archive.py index aed2a8a8..d77f3fd0 100755 --- a/dak/check_archive.py +++ b/dak/check_archive.py @@ -186,7 +186,7 @@ def check_override(): print "-" * len(suite_name) print suite = get_suite(suite_name) - q = s.execute(""" + q = session.execute(""" SELECT DISTINCT b.package FROM binaries b, bin_associations ba WHERE b.id = ba.bin AND ba.suite = :suiteid AND NOT EXISTS (SELECT 1 FROM override o WHERE o.suite = :suiteid AND o.package = b.package)""" @@ -195,7 +195,7 @@ SELECT DISTINCT b.package FROM binaries b, bin_associations ba for j in q.fetchall(): print j[0] - q = s.execute(""" + q = session.execute(""" SELECT DISTINCT s.source FROM source s, src_associations sa WHERE s.id = sa.source AND sa.suite = :suiteid AND NOT EXISTS (SELECT 1 FROM override o WHERE o.suite = :suiteid and o.package = s.source)"""