From 2e19ddc8987ddc038191482b51eec8adb6d88a84 Mon Sep 17 00:00:00 2001 From: Mattia Rizzolo Date: Tue, 3 Feb 2015 11:38:22 +0100 Subject: reproducible: also export build_time in the json --- bin/reproducible_json.py | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/bin/reproducible_json.py b/bin/reproducible_json.py index 7080b9ea..2d119acb 100755 --- a/bin/reproducible_json.py +++ b/bin/reproducible_json.py @@ -12,15 +12,16 @@ from reproducible_common import * import json -result = sorted(query_db('SELECT name, version, status FROM source_packages' + - ' WHERE status != ""')) +result = sorted(query_db('SELECT name, version, status , build_date ' + + 'FROM source_packages ' + + 'WHERE status != ""')) count = int(query_db('SELECT COUNT(name) FROM source_packages ' + 'WHERE status != ""')[0][0]) log.info('processing ' + str(count) + ' package to create .json output') all_pkgs = [] -keys = ['package', 'version', 'status'] +keys = ['package', 'version', 'status', 'build_date'] for row in result: pkg = dict(zip(keys, row)) pkg['suite'] = 'sid' -- cgit v1.2.3-70-g09d2