未验证 提交 0723bb6b 编写于 作者: J Julien Cristau 提交者: Ansgar Burchardt

dakweb: add -a option for madison

Signed-off-by: NJulien Cristau <jcristau@debian.org>
上级 81ab2a92
......@@ -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]
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册