]> git.decadent.org.uk Git - dak.git/commitdiff
ls: also accept codenames
authorAnsgar Burchardt <ansgar@debian.org>
Thu, 11 Jun 2015 19:17:43 +0000 (21:17 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Thu, 11 Jun 2015 19:17:43 +0000 (21:17 +0200)
daklib/ls.py

index dacc23bab2edaec684c7baccae46c1fda6f04a3a..0a1548f85a5ec133ce70d8b7b3361af2f4134289 100644 (file)
@@ -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: