Monday, March 16, 2020

[389-commits] [389-ds-base] branch master updated: Issue 50954 - Port buildnum.pl to python(part 2)

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@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.
_______________________________________________
389-commits mailing list -- 389-commits@lists.fedoraproject.org
To unsubscribe send an email to 389-commits-leave@lists.fedoraproject.org
Fedora Code of Conduct: https://docs.fedoraproject.org/en-US/project/code-of-conduct/
List Guidelines: https://fedoraproject.org/wiki/Mailing_list_guidelines
List Archives: https://lists.fedoraproject.org/archives/list/389-commits@lists.fedoraproject.org

No comments:

Post a Comment