summaryrefslogtreecommitdiffstats
path: root/bin/reproducible_json.py
diff options
context:
space:
mode:
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)))