This is an automated email from the git hooks/post-receive script.
mreynolds pushed a commit to branch master
in repository 389-ds-base.
The following commit(s) were added to refs/heads/master by this push:
new dae7cc9 Issue 50954 - Port buildnum.pl to python(part 2)
dae7cc9 is described below
commit dae7cc9346921e6e229da02aa9060905f8fa141a
Author: Mark Reynolds <mreynolds(a)redhat.com>
AuthorDate: Mon Mar 16 10:37:33 2020 -0400
Issue 50954 - Port buildnum.pl to python(part 2)
Description: If the env var SOURCE_DATE_EPOCH is set we need
convert it to an Integer when passing it to gmtime().
relates:
https://pagure.io/389-ds-base/issue/50954
Reviewed by: mreynolds(one line commit rule)
---
buildnum.py | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/buildnum.py b/buildnum.py
index 8b7226c..e205077 100755
--- a/buildnum.py
+++ b/buildnum.py
@@ -14,7 +14,7 @@ import time
SDE = os.getenv('SOURCE_DATE_EPOCH')
if SDE is not None:
- obj = time.gmtime(SDE)
+ obj = time.gmtime(int(SDE))
else:
obj = time.gmtime()
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.