X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dak%2Fcheck_overrides.py;fp=dak%2Fcheck_overrides.py;h=7ed38147787a0efc2216df5dfa53715224444aa6;hb=e9628d0da14a4a046b04ac6c20675432168dcc4a;hp=15f944c85a6b9bba300ece3d4803b07e2551b943;hpb=4cba2a67e19776b8e294adb5e013b848531fdfb6;p=dak.git diff --git a/dak/check_overrides.py b/dak/check_overrides.py index 15f944c8..7ed38147 100755 --- a/dak/check_overrides.py +++ b/dak/check_overrides.py @@ -112,7 +112,7 @@ SELECT b.package FROM binaries b, bin_associations ba, files f, location l, component c WHERE b.type = '%s' AND b.id = ba.bin AND f.id = b.file AND l.id = f.location AND c.id = l.component AND ba.suite IN (%s) AND c.id = %s -""" % (type, ",".join(map(str,affected_suites)), component_id)) +""" % (type, ",".join([ str(i) for i in affected_suites ]), component_id)) for i in q.getresult(): packages[i[0]] = 0 @@ -122,7 +122,7 @@ SELECT s.source FROM source s, src_associations sa, files f, location l, component c WHERE s.id = sa.source AND f.id = s.file AND l.id = f.location AND c.id = l.component AND sa.suite IN (%s) AND c.id = %s -""" % (",".join(map(str,affected_suites)), component_id)) +""" % (",".join([ str(i) for i in affected_suites]), component_id)) for i in q.getresult(): src_packages[i[0]] = 0 @@ -322,7 +322,7 @@ def main (): suites.append(suite) q = projectB.query("SELECT id FROM suite WHERE suite_name in (%s)" \ - % ", ".join(map(repr, suites)).lower()) + % ", ".join([ repr(i) for i in suites ]).lower()) suiteids = [] for i in q.getresult():