summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_json.py
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-05-17 15:31:08 +0200
committerHolger Levsen <holger@layer-acht.org>2015-05-17 15:31:08 +0200
commit0c7f0fca338e9147cc033b5720d48d12cf0aa2f8 (patch)
treee18b8b432101037b4d34a573bb72a756da135298 /bin/reproducible_json.py
parent41f121db19e794f4180239d02b5db8ff19a119f7 (diff)
downloadjenkins.debian.net-0c7f0fca338e9147cc033b5720d48d12cf0aa2f8.tar.xz
reproducible: include filtered ftbfs issues in the .json output
Diffstat (limited to 'bin/reproducible_json.py')
-rwxr-xr-xbin/reproducible_json.py5
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)))