From 5ef8b9eafb33fbeb591dbc71c3e3bdc511bcadd5 Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Sat, 4 Oct 2008 21:53:13 -1000 Subject: [PATCH] Add some banner messages explaining the major steps of lorax. --- src/bin/lorax | 12 ++++++++++++ 1 file changed, 12 insertions(+) diff --git a/src/bin/lorax b/src/bin/lorax index a54bbebc..a97a5a71 100755 --- a/src/bin/lorax +++ b/src/bin/lorax @@ -102,6 +102,10 @@ if __name__ == "__main__": sys.stderr.write("ERROR: Missing repo to use for image generation.\n") sys.exit(1) + print("\n+=======================================================+") + print("| Setting up work directories and configuration data... |") + print("+=======================================================+\n") + # collect all repos specified on the command line. the first repo is # designated the main repo (I guess) repo, extrarepos = pylorax.collectRepos(args) @@ -117,11 +121,19 @@ if __name__ == "__main__": buildarch = pylorax.getBuildArch() + print("\n+================================================+") + print("| Creating instroot tree to build images from... |") + print("+================================================+\n") + # upd-instroot if not pylorax.instroot.createInstRoot(yumconf=yumconf, arch=buildarch, treedir=treedir, updates=updates): sys.stderr.write("ERROR: Could not create inst root.\n") sys.exit(1) + print("\n+=======================================+") + print("| Writing meta data to instroot tree... |") + print("+=======================================+\n") + # write .treeinfo file if not pylorax.treeinfo.write(family=product, variant=variant, version=version, arch=buildarch, outdir=output): sys.stderr.write("Error writing %s/.treeinfo file.\n" % (output,))