From 34c92af4f2915f3a28918edcd5052f4ceca437ea Mon Sep 17 00:00:00 2001 From: Luca Falavigna Date: Thu, 9 Dec 2010 09:56:03 +0000 Subject: [PATCH] ls.py: let -a source display sources only (#458186) Signed-off-by: Luca Falavigna --- dak/ls.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/dak/ls.py b/dak/ls.py index 85ad4905..66e8d427 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: -- 2.39.5