diff options
author | Holger Levsen <holger@layer-acht.org> | 2015-05-17 15:31:08 +0200 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-05-17 15:31:08 +0200 |
commit | 0c7f0fca338e9147cc033b5720d48d12cf0aa2f8 (patch) | |
tree | e18b8b432101037b4d34a573bb72a756da135298 /bin/reproducible_json.py | |
parent | 41f121db19e794f4180239d02b5db8ff19a119f7 (diff) | |
download | jenkins.debian.net-0c7f0fca338e9147cc033b5720d48d12cf0aa2f8.tar.xz |
reproducible: include filtered ftbfs issues in the .json output
Diffstat (limited to 'bin/reproducible_json.py')
-rwxr-xr-x | bin/reproducible_json.py | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/bin/reproducible_json.py b/bin/reproducible_json.py index 89a1345c..d5d7aaf5 100755 --- a/bin/reproducible_json.py +++ b/bin/reproducible_json.py @@ -21,9 +21,12 @@ output = [] log.info('Creating json dump of current reproducible status') +# filter_query is defined in reproducible_common.py and excludes some FTBFS issues query = 'SELECT s.name, r.version, s.suite, s.architecture, r.status, r.build_date ' + \ 'FROM results AS r JOIN sources AS s ON r.package_id = s.id '+ \ - 'WHERE status != "" AND status != "FTBFS"' + 'WHERE status != "" AND (( status != "FTBFS" ) OR ' \ + ' ( status = "FTBFS" and r.package_id NOT IN (SELECT n.package_id FROM NOTES AS n WHERE ' + filter_query + ' )))' + result = sorted(query_db(query)) log.info('\tprocessing ' + str(len(result))) |