]> git.decadent.org.uk Git - dak.git/commitdiff
ls: Also search for codename.
authorAnsgar Burchardt <ansgar@debian.org>
Sun, 14 Jun 2015 07:29:44 +0000 (09:29 +0200)
committerAnsgar Burchardt <ansgar@debian.org>
Sun, 14 Jun 2015 07:29:44 +0000 (09:29 +0200)
Bug: https://bugs.debian.org/788669

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: