try:
failures = rq.execute_runqueue()
except runqueue.TaskFailure, fnids:
+ failures = 0
for fnid in fnids:
bb.msg.error(bb.msg.domain.Build, "'%s' failed" % taskdata.fn_index[fnid])
+ failures = failures + 1
+ bb.event.fire(bb.event.BuildCompleted(buildname, [item], self.configuration.event_data, failures))
return False
bb.event.fire(bb.event.BuildCompleted(buildname, [item], self.configuration.event_data, failures))
return True
try:
failures = rq.execute_runqueue()
except runqueue.TaskFailure, fnids:
+ failures = 0
for fnid in fnids:
bb.msg.error(bb.msg.domain.Build, "'%s' failed" % taskdata.fn_index[fnid])
+ failures = failures + 1
+ bb.event.fire(bb.event.BuildCompleted(buildname, targets, self.configuration.event_data, failures))
sys.exit(1)
bb.event.fire(bb.event.BuildCompleted(buildname, targets, self.configuration.event_data, failures))
"""bbmake build run started"""
+class BuildFailed(BuildBase):
+ """bbmake build run failed"""
+
+
class BuildCompleted(BuildBase):
"""bbmake build run completed"""
init(d)
if ext == ".bbclass":
- __classname__ = root
+ __classname__ = root.replace('-','_')
classes.append(__classname__)
__inherit_cache = data.getVar('__inherit_cache', d) or []
if not fn in __inherit_cache:
m = __func_start_regexp__.match(s)
if m:
- __infunc__ = m.group("func") or "__anonymous"
+ __infunc__ = (m.group("func") or "__anonymous").replace('-','_')
key = __infunc__
if data.getVar(key, d):
# clean up old version of this piece of metadata, as its