Signed-off-by: Mark Hymers <mhy@debian.org>
import commands
import os
-import pg
import stat
import sys
import time
(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("""
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]
################################################################################