lorax: Log when SOURCE_DATE_EPOCH is used for the current time

This commit is contained in:
Brian C. Lane 2018-10-18 11:19:15 -07:00 committed by Brian C. Lane
parent fa2158c7a9
commit 5409748e75
1 changed files with 3 additions and 0 deletions

View File

@ -122,6 +122,9 @@ def main():
raise ValueError("Missing '=' for key=value in " % kv)
parsed_add_arch_template_vars[k] = v
if 'SOURCE_DATE_EPOCH' in os.environ:
log.info("Using SOURCE_DATE_EPOCH=%s as the current time.", os.environ["SOURCE_DATE_EPOCH"])
# run lorax
lorax = pylorax.Lorax()
lorax.configure(conf_file=opts.config)