summaryrefslogtreecommitdiff
path: root/meta/classes/base.bbclass
diff options
context:
space:
mode:
authorChristopher Larson <kergoth@gmail.com>2012-04-26 23:34:58 -0500
committerRichard Purdie <richard.purdie@linuxfoundation.org>2012-05-03 15:00:25 +0100
commit86556a2bfa23ba69fea2ade14599054b186150cd (patch)
tree03d742f802fa2f44f4e5063eeb8b1b8609bf557f /meta/classes/base.bbclass
parent164df0708d9add81be7d1fd56d487253062756d8 (diff)
downloadopenembedded-core-86556a2bfa23ba69fea2ade14599054b186150cd.tar.gz
openembedded-core-86556a2bfa23ba69fea2ade14599054b186150cd.tar.bz2
openembedded-core-86556a2bfa23ba69fea2ade14599054b186150cd.tar.xz
openembedded-core-86556a2bfa23ba69fea2ade14599054b186150cd.zip
base.bbclass: use isinstance for base_eventhandler
Signed-off-by: Christopher Larson <kergoth@gmail.com>
Diffstat (limited to 'meta/classes/base.bbclass')
-rw-r--r--meta/classes/base.bbclass16
1 files changed, 6 insertions, 10 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass
index 07ef9a231..bb39b7b0b 100644
--- a/meta/classes/base.bbclass
+++ b/meta/classes/base.bbclass
@@ -248,12 +248,13 @@ def buildcfg_neededvars(d):
addhandler base_eventhandler
python base_eventhandler() {
- from bb.event import getName
-
- name = getName(e)
-
- if name.startswith("BuildStarted"):
+ if isinstance(e, bb.event.ConfigParsed):
e.data.setVar('BB_VERSION', bb.__version__)
+ generate_git_config(e)
+ pkgarch_mapping(e.data)
+ preferred_ml_updates(e.data)
+
+ if isinstance(e, bb.event.BuildStarted):
statuslines = []
for func in oe.data.typed_value('BUILDCFG_FUNCS', e.data):
g = globals()
@@ -266,11 +267,6 @@ python base_eventhandler() {
statusheader = e.data.getVar('BUILDCFG_HEADER', True)
bb.plain('\n%s\n%s\n' % (statusheader, '\n'.join(statuslines)))
-
- if name == "ConfigParsed":
- generate_git_config(e)
- pkgarch_mapping(e.data)
- preferred_ml_updates(e.data)
}
addtask configure after do_patch