summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorHolger Levsen <holger@layer-acht.org>2015-03-15 11:44:17 +0100
committerHolger Levsen <holger@layer-acht.org>2015-03-15 11:44:17 +0100
commit914fb94cac23f7f57df3308f51d2d81ede56cb12 (patch)
tree09228478a24a2910b5a5b323ba000d918492786f /bin
parent23ed734d2422aa7a9d077384bbfa3db9bbe46f06 (diff)
downloadjenkins.debian.net-914fb94cac23f7f57df3308f51d2d81ede56cb12.tar.xz
reproducible: chmod the json file correctly.
Diffstat (limited to 'bin')
-rwxr-xr-xbin/reproducible_json.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bin/reproducible_json.py b/bin/reproducible_json.py
index d00d5091..fae0d402 100755
--- a/bin/reproducible_json.py
+++ b/bin/reproducible_json.py
@@ -2,6 +2,7 @@
# -*- coding: utf-8 -*-
#
# Copyright © 2015 Mattia Rizzolo <mattia@mapreri.org>
+# Copyright © 2015 Holger Levsen <holger@layer-acht.org>
# Based on reproducible_json.sh © 2014 Holger Levsen <holger@layer-acht.org>
# Licensed under GPL-2
#
@@ -38,6 +39,7 @@ with open(tmpfile.name, 'w') as fd:
json.dump(output, fd, indent=4, sort_keys=True)
os.rename(tmpfile.name, REPRODUCIBLE_JSON)
+os.chmod(REPRODUCIBLE_JSON, 0o644)
log.info(REPRODUCIBLE_URL + '/reproducible.json has been updated.')