From: Julien Cristau Date: Mon, 25 May 2015 14:41:36 +0000 (+0200) Subject: dakweb: add -a option for madison X-Git-Url: https://git.decadent.org.uk/gitweb/?a=commitdiff_plain;h=0723bb6b74c0a6dbbe4d0e5f789c5c1151a074f7;p=dak.git dakweb: add -a option for madison Signed-off-by: Julien Cristau --- 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]