summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorBernhard M. Wiedemann <bwiedemann@suse.de>2018-08-29 05:55:37 +0200
committerBernhard M. Wiedemann <bwiedemann@suse.de>2018-08-29 05:55:37 +0200
commit853d9c0807ed4fd18a51f9e9c4f8846277b27553 (patch)
treea672c680be74b2bfbc3fd1f3f30362ca5675921c
parent6fcc20ec5116a77c2328f4406a258527cc1aad5e (diff)
Do not record year of build
This value becomes part of get_version_info output, but if it is changing every year without any other change, it cannot be a useful indicator of anything. Using a constant value, makes the package build reproducible. See https://reproducible-builds.org/ for why this is good.
-rw-r--r--methods.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/methods.py b/methods.py
index e9450d95e2..7aa06f04b8 100644
--- a/methods.py
+++ b/methods.py
@@ -43,7 +43,7 @@ def update_version(module_version_string=""):
f.write("#define VERSION_STATUS \"" + str(version.status) + "\"\n")
f.write("#define VERSION_BUILD \"" + str(build_name) + "\"\n")
f.write("#define VERSION_MODULE_CONFIG \"" + str(version.module_config) + module_version_string + "\"\n")
- f.write("#define VERSION_YEAR " + str(datetime.datetime.now().year) + "\n")
+ f.write("#define VERSION_YEAR " + str(2018) + "\n")
f.close()
# NOTE: It is safe to generate this file here, since this is still executed serially