From: Luca Falavigna Date: Thu, 9 Dec 2010 09:56:03 +0000 (+0000) Subject: ls.py: let -a source display sources only (#458186) X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=34c92af4f2915f3a28918edcd5052f4ceca437ea;p=dak.git ls.py: let -a source display sources only (#458186) Signed-off-by: Luca Falavigna --- 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: