[Reproducible-commits] [misc] 01/01: unreproducible-installed: Add --arch to filter by architecture.
Valentin Lorentz
progval-guest at moszumanska.debian.org
Tue Aug 18 16:36:41 UTC 2015
This is an automated email from the git hooks/post-receive script.
progval-guest pushed a commit to branch master
in repository misc.
commit 2d5c200737eaa296034cc6141213af7624828da8
Author: Valentin Lorentz <progval at progval.net>
Date: Tue Aug 18 18:37:56 2015 +0200
unreproducible-installed: Add --arch to filter by architecture.
---
unreproducible-installed | 8 ++++++++
1 file changed, 8 insertions(+)
diff --git a/unreproducible-installed b/unreproducible-installed
index b2ac14c..8e39a07 100755
--- a/unreproducible-installed
+++ b/unreproducible-installed
@@ -62,6 +62,10 @@ filter_group.add_argument('--suite', type=str, action='append',
help='The suite where to look packages for. Use this option multiple '
'times to look in multiple suites. "any" looks in all suites. '
'Defaults to "%s".' % ', '.join(DEFAULT_SUITES))
+filter_group.add_argument('--arch', type=str, action='append',
+ help='The architecture where to look packages for. Use this option multiple '
+ 'times to look in multiple architectures. '
+ 'Defaults to all architectures.')
filter_group.add_argument('--exclude-status', type=str, action='append',
help='The package status to remove. Use this option multiple times to '
'exclude many. Defaults to "%s".' %
@@ -123,6 +127,10 @@ def filter_packages(args, notes):
return bool(issues)
filters.append(predicate)
+ if args.arch:
+ architectures = frozenset(args.arch)
+ filters.append(lambda x:x['architecture'] in architectures)
+
unreproducible = {x['package']
for x in data
if all(f(x) for f in filters)}
--
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/reproducible/misc.git
More information about the Reproducible-commits
mailing list