[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

[dak/master] ls.py: let -a source display sources only (#458186)



Signed-off-by: Luca Falavigna <dktrkranz@debian.org>
---
 dak/ls.py |    5 ++++-
 1 files changed, 4 insertions(+), 1 deletions(-)

diff --git a/dak/ls.py b/dak/ls.py
index 85ad490..66e8d42 100755
--- 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:
-- 
1.5.6.5



Reply to: