From ccb11427d00520c1ed651f9fa49d60ce788b1971 Mon Sep 17 00:00:00 2001 From: "Brian C. Lane" Date: Thu, 18 Oct 2018 11:19:15 -0700 Subject: [PATCH] lorax: Log when SOURCE_DATE_EPOCH is used for the current time (cherry picked from commit 5409748e75b3b778f82e345025f0ea8650d4dc83) --- src/sbin/lorax | 3 +++ 1 file changed, 3 insertions(+) diff --git a/src/sbin/lorax b/src/sbin/lorax index d783cf9a..e1aa3729 100755 --- a/src/sbin/lorax +++ b/src/sbin/lorax @@ -173,6 +173,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)