[Reproducible-commits] [misc] 01/01: unreproducible-installed: Add option to hide packages with reported bugs.
Valentin Lorentz
progval-guest at moszumanska.debian.org
Tue Aug 11 19:26:35 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 10a0e6f2a720b1c1fc68c370266e0c9198b68140
Author: Valentin Lorentz <progval at progval.net>
Date: Tue Aug 11 21:27:41 2015 +0200
unreproducible-installed: Add option to hide packages with reported bugs.
---
unreproducible-installed | 10 ++++++++++
1 file changed, 10 insertions(+)
diff --git a/unreproducible-installed b/unreproducible-installed
index 01b85fd..86f2bf6 100755
--- a/unreproducible-installed
+++ b/unreproducible-installed
@@ -21,10 +21,15 @@ else: # Python 2
from urllib2 import urlopen
URL = 'https://reproducible.debian.net/reproducible.json'
+PACKAGE_NOTES = os.path.join(os.path.dirname(__file__), '../notes/packages.yml')
+IGNORE_REPORTED = True
SAVE_TO = '/tmp/reproducible.json'
FILE_NAMES = ('./reproducible.json', SAVE_TO)
MAX_AGE = 60*60
+if IGNORE_REPORTED:
+ import yaml
+
for filename in FILE_NAMES:
if os.path.isfile(filename) and \
os.path.getmtime(filename) + MAX_AGE > time.time():
@@ -47,6 +52,11 @@ unreproducible = {x['package']
if x['status'] != 'reproducible'
and x['suite'] == 'unstable'} # we only care about unstable
+if IGNORE_REPORTED:
+ with open(PACKAGE_NOTES) as fd:
+ notes = yaml.load(fd)
+ unreproducible = {x for x in unreproducible if 'bugs' in notes.get(x, {})}
+
dpkg_output = subprocess.check_output(['dpkg', '-l'], universal_newlines=True)
dpkg_list = dpkg_output.split('\n')
installed = {x.split(' ')[1].split(':')[0] # keep the second field, strip arch
--
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