From: Mark Hymers Date: Sun, 9 Aug 2009 00:30:33 +0000 (+0100) Subject: bug fixes X-Git-Url: https://err.no/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=ab0b5f4dac08ae1f8f9464c6a7977686605a44c3;p=dak bug fixes Signed-off-by: Mark Hymers --- diff --git a/dak/check_archive.py b/dak/check_archive.py index 10765a89..6ca84c69 100755 --- a/dak/check_archive.py +++ b/dak/check_archive.py @@ -32,7 +32,6 @@ import commands import os -import pg import stat import sys import time @@ -194,7 +193,7 @@ SELECT DISTINCT b.package FROM binaries b, bin_associations ba (SELECT 1 FROM override o WHERE o.suite = :suiteid AND o.package = b.package)""" % {'suiteid': suite.suite_id}) - for j in q: + for j in q.fetchall(): print j[0] q = s.execute(""" @@ -202,7 +201,7 @@ 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)""" % {'suiteid': suite.suite_id}) - for j in q: + for j in q.fetchall(): print j[0] ################################################################################