From: Mark Hymers Date: Mon, 26 Oct 2009 15:18:25 +0000 (+0000) Subject: pass parameters properly X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=689f597c251aa4e08e0e9980e4a80c1e3172c5c9;p=dak pass parameters properly Signed-off-by: Mark Hymers --- diff --git a/dak/cruft_report.py b/dak/cruft_report.py index 53831149..af3a1125 100755 --- a/dak/cruft_report.py +++ b/dak/cruft_report.py @@ -65,7 +65,8 @@ def add_nbs(nbs_d, source, version, package, suite_id, session): else: q = session.execute("""SELECT b.id FROM binaries b, bin_associations ba WHERE ba.bin = b.id AND ba.suite = :suite_id - AND b.package = suite_id LIMIT 1""" % (suite_id, package)) + AND b.package = :package LIMIT 1""" % {'suite_id': suite_id, + 'package': package}) if not q.fetchall(): no_longer_in_suite[package] = "" return