diff options
author | Mattia Rizzolo <mattia@mapreri.org> | 2015-02-03 11:38:22 +0100 |
---|---|---|
committer | Holger Levsen <holger@layer-acht.org> | 2015-02-03 11:56:33 +0100 |
commit | 2e19ddc8987ddc038191482b51eec8adb6d88a84 (patch) | |
tree | 4ed99be9057e9ecfa9b2f749bf871baab952a0d0 | |
parent | 9df7f1d9f2643fb8928135083a14f5d21dc50d62 (diff) | |
download | jenkins.debian.net-2e19ddc8987ddc038191482b51eec8adb6d88a84.tar.xz |
reproducible: also export build_time in the json
-rwxr-xr-x | bin/reproducible_json.py | 7 |
1 files 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' |