]> git.decadent.org.uk Git - dak.git/blobdiff - dak/ls.py
ls.py: let -a source display sources only (#458186)
[dak.git] / 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: