diff options
author | William Deegan <bill@baddogconsulting.com> | 2021-08-02 20:06:52 (GMT) |
---|---|---|
committer | William Deegan <bill@baddogconsulting.com> | 2021-08-02 20:06:52 (GMT) |
commit | 9be889ec7c3b9fcd5e5c3938de37f119e5269913 (patch) | |
tree | 64749f9086629c3dbaddef90a34eb3f32ca908d3 /site_scons/BuildCommandLine.py | |
parent | 01dea5f5bcd6178ba53aba668ab94f6bef5cb969 (diff) | |
download | SCons-9be889ec7c3b9fcd5e5c3938de37f119e5269913.zip SCons-9be889ec7c3b9fcd5e5c3938de37f119e5269913.tar.gz SCons-9be889ec7c3b9fcd5e5c3938de37f119e5269913.tar.bz2 |
Fix reproducible builds. Restore logic respecting SOURCE_DATE_EPOCH when set. Fix version tests to work with updated scons --version output. (Date format changed)
Diffstat (limited to 'site_scons/BuildCommandLine.py')
-rw-r--r-- | site_scons/BuildCommandLine.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/site_scons/BuildCommandLine.py b/site_scons/BuildCommandLine.py index 3a3622e..14bc279 100644 --- a/site_scons/BuildCommandLine.py +++ b/site_scons/BuildCommandLine.py @@ -77,7 +77,7 @@ class BuildCommandLine: min = (time.daylight and time.altzone or time.timezone) // 60 hr = min // 60 min = -(min % 60 + hr * 100) - self.date = (time.strftime('%a, %d %b %Y %X', time.localtime()) + self.date = (time.strftime('%a, %d %b %Y %X', time.localtime(int(os.environ.get('SOURCE_DATE_EPOCH', time.time())))) + ' %+.4d' % min) def process_command_line_vars(self): |