]> err.no Git - dak/commitdiff
ls.py: let -a source display sources only (#458186)
authorLuca Falavigna <dktrkranz@debian.org>
Thu, 9 Dec 2010 09:56:03 +0000 (09:56 +0000)
committerLuca Falavigna <dktrkranz@debian.org>
Mon, 10 Jan 2011 20:11:11 +0000 (20:11 +0000)
Signed-off-by: Luca Falavigna <dktrkranz@debian.org>
dak/ls.py

index 85ad4905214114c6a4d89a0fe40437c575d2a40d..66e8d42751eba2714779610939a05f7a4704800d 100755 (executable)
--- a/dak/ls.py
+++ b/dak/ls.py
@@ -150,7 +150,10 @@ SELECT s.source, s.version, 'source', su.suite_name, c.name, m.name
    AND s.file = f.id AND f.location = l.id AND l.component = c.id
    AND s.maintainer = m.id %s
 """ % (comparison_operator, con_suites), {'package': package})
-            ql.extend(q.fetchall())
+            if not Options["Architecture"] or con_architectures:
+                ql.extend(q.fetchall())
+            else:
+                ql = q.fetchall()
         d = {}
         highver = {}
         for i in ql: