]> err.no Git - dak/commitdiff
Fix do_anaias in cruft-report.
authorChris Lamb <lamby@debian.org>
Fri, 30 Oct 2009 11:53:33 +0000 (11:53 +0000)
committerChris Lamb <lamby@debian.org>
Fri, 30 Oct 2009 11:53:33 +0000 (11:53 +0000)
Signed-off-by: Chris Lamb <lamby@debian.org>
dak/cruft_report.py

index 0a1534c59dfaf8e0c6bedf9478f0133c81a12e8c..4541bf6eb6477c8c09cc91022b8c41636d031ebc 100755 (executable)
@@ -92,8 +92,9 @@ def do_anais(architecture, binaries_list, source, session):
                                WHERE ba.suite = :suiteid AND ba.bin = b.id
                                  AND b.architecture = a.id AND b.package = :package""",
                              {'suiteid': suite_id, 'package': binary})
+        ql = q.fetchall()
         versions = []
-        for i in q.fetchall():
+        for i in ql:
             arch = i[0]
             version = i[1]
             if architectures.has_key(arch):