From: Ansgar Burchardt Date: Thu, 11 Jun 2015 19:17:43 +0000 (+0200) Subject: ls: also accept codenames X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=87087596eaef30f9e2bfaa5908ffceadf7813a25;p=dak.git ls: also accept codenames --- diff --git a/daklib/ls.py b/daklib/ls.py index dacc23ba..0a1548f8 100644 --- a/daklib/ls.py +++ b/daklib/ls.py @@ -41,7 +41,7 @@ def list_packages(packages, suites=None, components=None, architectures=None, bi where = where | t.c.source.op(comparison_operator)(package) if suites is not None: - where = where & t.c.suite.in_(suites) + where = where & (t.c.suite.in_(suites) | t.c.codename.in_(suites)) if components is not None: where = where & t.c.component.in_(components) if architectures is not None: