lorax: Log when SOURCE_DATE_EPOCH is used for the current time

(cherry picked from commit 5409748e75)
This commit is contained in:
Brian C. Lane 2018-10-18 11:19:15 -07:00
parent e2366fd0c0
commit ccb11427d0

View File

@ -173,6 +173,9 @@ def main():
raise ValueError("Missing '=' for key=value in " % kv) raise ValueError("Missing '=' for key=value in " % kv)
parsed_add_arch_template_vars[k] = v 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 # run lorax
lorax = pylorax.Lorax() lorax = pylorax.Lorax()
lorax.configure(conf_file=opts.config) lorax.configure(conf_file=opts.config)