From 0723bb6b74c0a6dbbe4d0e5f789c5c1151a074f7 Mon Sep 17 00:00:00 2001 From: Julien Cristau Date: Mon, 25 May 2015 16:41:36 +0200 Subject: [PATCH] dakweb: add -a option for madison Signed-off-by: Julien Cristau --- dakweb/queries/madison.py | 4 ++++ 1 file changed, 4 insertions(+) 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] -- 2.39.5