diff options
author | Debian Mobcom Maintainers <Debian-mobcom-maintainers@lists.alioth.debian.org> | 2018-11-05 21:54:43 +0100 |
---|---|---|
committer | Ruben Undheim <ruben.undheim@gmail.com> | 2018-11-05 21:54:43 +0100 |
commit | 2e41474d52837f344cf33cbf401718abe5e9e008 (patch) | |
tree | 669ea7ae1e035edfdbc18578e1d3be8693ffad8c | |
parent | 2eef11c27bef1fc2273c81f82d185786c8ca5d3a (diff) |
reproducible-build
Gbp-Pq: Name reproducible-build.patch
-rwxr-xr-x | asn1/utils/asn1tostruct.py | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/asn1/utils/asn1tostruct.py b/asn1/utils/asn1tostruct.py index 0bba9dd..e6f051a 100755 --- a/asn1/utils/asn1tostruct.py +++ b/asn1/utils/asn1tostruct.py @@ -3,7 +3,7 @@ import re, os, sys, string import datetime import getopt -import getpass +import time version = "0.5osmo1" @@ -33,11 +33,11 @@ def printDebug(string): print string def outputHeaderToFile(f, filename): - now = datetime.datetime.now() + now = datetime.datetime.utcfromtimestamp(int(os.environ.get('SOURCE_DATE_EPOCH', time.time()))) f.write("/*******************************************************************************\n") f.write(" * This file had been created by asn1tostruct.py script v%s\n" % (version)) f.write(" * Please do not modify this file but regenerate it via script.\n") - f.write(" * Created on: %s by %s\n * from %s\n" % (str(now), getpass.getuser(), filenames)) + f.write(" * Created on: %s\n * from %s\n" % (str(now), filenames)) f.write(" ******************************************************************************/\n") def lowerFirstCamelWord(word): |