diff options
Diffstat (limited to 'meta/classes/buildhistory.bbclass')
-rw-r--r-- | meta/classes/buildhistory.bbclass | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/meta/classes/buildhistory.bbclass b/meta/classes/buildhistory.bbclass index 450eb7cb80..c8fd68c39e 100644 --- a/meta/classes/buildhistory.bbclass +++ b/meta/classes/buildhistory.bbclass | |||
@@ -525,13 +525,13 @@ END | |||
525 | } | 525 | } |
526 | 526 | ||
527 | python buildhistory_eventhandler() { | 527 | python buildhistory_eventhandler() { |
528 | if isinstance(e, bb.event.BuildCompleted): | 528 | if e.data.getVar('BUILDHISTORY_FEATURES', True).strip(): |
529 | if e.data.getVar('BUILDHISTORY_FEATURES', True).strip(): | 529 | if e.data.getVar("BUILDHISTORY_COMMIT", True) == "1": |
530 | if e.data.getVar("BUILDHISTORY_COMMIT", True) == "1": | 530 | bb.build.exec_func("buildhistory_commit", e.data) |
531 | bb.build.exec_func("buildhistory_commit", e.data) | ||
532 | } | 531 | } |
533 | 532 | ||
534 | addhandler buildhistory_eventhandler | 533 | addhandler buildhistory_eventhandler |
534 | buildhistory_eventhandler[eventmask] = "bb.event.BuildCompleted" | ||
535 | 535 | ||
536 | 536 | ||
537 | # FIXME this ought to be moved into the fetcher | 537 | # FIXME this ought to be moved into the fetcher |