aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorChris Larson <chris_larson@mentor.com>2010-12-10 09:20:29 -0700
committerChris Larson <chris_larson@mentor.com>2010-12-10 09:20:29 -0700
commitc67b95955d023c1f198531b4f06100a40b05efa7 (patch)
tree1233679297da1c5a72f965f68d671d2030cefb2b
parentbbd15964c3af5e06c24aa040dc58ebeca2872d93 (diff)
downloadopenembedded-c67b95955d023c1f198531b4f06100a40b05efa7.tar.gz
openembedded-c67b95955d023c1f198531b4f06100a40b05efa7.tar.bz2
openembedded-c67b95955d023c1f198531b4f06100a40b05efa7.zip
base: use bb.plain, not print for build_summary
Signed-off-by: Chris Larson <chris_larson@mentor.com>
-rw-r--r--classes/base.bbclass36
1 files changed, 18 insertions, 18 deletions
diff --git a/classes/base.bbclass b/classes/base.bbclass
index 7f58b179e0..ac0f388e9c 100644
--- a/classes/base.bbclass
+++ b/classes/base.bbclass
@@ -233,24 +233,24 @@ python base_do_unpack() {
}
python build_summary() {
- from bb import note, error, data
- from bb.event import getName
-
- if isinstance(e, bb.event.BuildStarted):
- bb.data.setVar( 'BB_VERSION', bb.__version__, e.data )
- statusvars = bb.data.getVar("BUILDCFG_VARS", e.data, 1).split()
- statuslines = ["%-17s = \"%s\"" % (i, bb.data.getVar(i, e.data, 1) or '') for i in statusvars]
- statusmsg = "\n%s\n%s\n" % (bb.data.getVar("BUILDCFG_HEADER", e.data, 1), "\n".join(statuslines))
- print statusmsg
-
- needed_vars = bb.data.getVar("BUILDCFG_NEEDEDVARS", e.data, 1).split()
- pesteruser = []
- for v in needed_vars:
- val = bb.data.getVar(v, e.data, 1)
- if not val or val == 'INVALID':
- pesteruser.append(v)
- if pesteruser:
- bb.fatal('The following variable(s) were not set: %s\nPlease set them directly, or choose a MACHINE or DISTRO that sets them.' % ', '.join(pesteruser))
+ from bb import note, error, data
+ from bb.event import getName
+
+ if isinstance(e, bb.event.BuildStarted):
+ bb.data.setVar( 'BB_VERSION', bb.__version__, e.data )
+ statusvars = bb.data.getVar("BUILDCFG_VARS", e.data, 1).split()
+ statuslines = ["%-17s = \"%s\"" % (i, bb.data.getVar(i, e.data, 1) or '') for i in statusvars]
+ statusmsg = "\n%s\n%s\n" % (bb.data.getVar("BUILDCFG_HEADER", e.data, 1), "\n".join(statuslines))
+ bb.plain(statusmsg)
+
+ needed_vars = bb.data.getVar("BUILDCFG_NEEDEDVARS", e.data, 1).split()
+ pesteruser = []
+ for v in needed_vars:
+ val = bb.data.getVar(v, e.data, 1)
+ if not val or val == 'INVALID':
+ pesteruser.append(v)
+ if pesteruser:
+ bb.fatal('The following variable(s) were not set: %s\nPlease set them directly, or choose a MACHINE or DISTRO that sets them.' % ', '.join(pesteruser))
}
addhandler build_summary