From 230bcee79b77308d00e4ced83cea9a68245d3ba0 Mon Sep 17 00:00:00 2001 From: David Cantrell Date: Sun, 5 Oct 2008 15:08:38 -1000 Subject: [PATCH] Add some more signal output. --- src/pylorax/__init__.py | 16 +++++++++++++++- 1 file changed, 15 insertions(+), 1 deletion(-) diff --git a/src/pylorax/__init__.py b/src/pylorax/__init__.py index d889d337..d60da3e9 100644 --- a/src/pylorax/__init__.py +++ b/src/pylorax/__init__.py @@ -67,8 +67,11 @@ def collectRepos(args): repolist = [] for repospec in args: if repospec.startswith('/'): - repolist.append("file://%s" % (repospec,)) + repo = "file://%s" % (repospec,) + print("Adding local repo:\n %s" % (repo,)) + repolist.append(repo) elif repospec.startswith('http://') or repospec.startswith('ftp://'): + print("Adding remote repo:\n %s" % (repospec,)) repolist.append(repospec) repo = repolist[0] @@ -76,6 +79,7 @@ def collectRepos(args): if len(repolist) > 1: for extra in repolist[1:]: + print("Adding extra repo:\n %s" % (extra,)) extrarepos.append(extra) return repo, extrarepos @@ -96,6 +100,12 @@ def initializeDirs(output): treedir = tempfile.mkdtemp('XXXXXX', 'treedir.', conf['tmpdir']) cachedir = tempfile.mkdtemp('XXXXXX', 'yumcache.', conf['tmpdir']) + print("Working directories:") + print(" tmpdir = %s" % (conf['tmpdir'],) + print(" buildinstdir = %s" % (buildinstdir,)) + print(" treedir = %s" % (treedir,)) + print(" cachedir = %s" % (cachedir,)) + return buildinstdir, treedir, cachedir def writeYumConf(cachedir=None, repo=None, extrarepos=[], mirrorlist=[]): @@ -149,6 +159,8 @@ def writeYumConf(cachedir=None, repo=None, extrarepos=[], mirrorlist=[]): n += 1 f.close() + print("Wrote lorax yum configuration to %s" % (yumconf,)) + return yumconf def getBuildArch(yumconf=None): @@ -191,6 +203,8 @@ def getBuildArch(yumconf=None): if ret_arch is None: ret_arch = uname_arch + print("Building images for %s" % (ret_arch,)) + return ret_arch def cleanup(trash=[]):