X-Git-Url: https://git.decadent.org.uk/gitweb/?a=blobdiff_plain;f=dakweb%2Fqueries%2Fmadison.py;h=82a3af5b31048ab1b60fab5a43303b902bc9955b;hb=80108bebf0307acfc27d586e6faffe193199b14b;hp=023f67d03bcadd64475a0b9c738aa309cc408797;hpb=e41ae8d5a5fd9c204711a36b47e0593312da8c75;p=dak.git diff --git a/dakweb/queries/madison.py b/dakweb/queries/madison.py index 023f67d0..82a3af5b 100644 --- a/dakweb/queries/madison.py +++ b/dakweb/queries/madison.py @@ -20,6 +20,7 @@ def madison(): @since: December 2014 @keyword package: Space seperated list of packages. + @keyword a: only show info for specified architectures. @keyword b: only show info for a binary type. I{deb/udeb/dsc} @keyword c: only show info for specified component(s). I{main/contrib/non-free} @keyword s: only show info for this suite. @@ -36,6 +37,9 @@ def madison(): packages = r.query.get('package', '').split() kwargs = dict() + architectures = r.query.get('a', None) + if architectures is not None: + kwargs['architectures'] = architectures.split(",") binary_type = r.query.get('b', None) if binary_type is not None: kwargs['binary_types'] = [binary_type]