diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2010-12-30 18:40:32 +0000 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2010-12-31 09:51:18 +0000 |
commit | 33f67ee2fc0e5bce5639d75e618371df6fb1b002 (patch) | |
tree | b9b4737104e6535d70186652f4abccba8d29201e /meta/classes/distrodata.bbclass | |
parent | b75330e99bf41da1854accaa99ea5cb942367e2b (diff) | |
download | poky-33f67ee2fc0e5bce5639d75e618371df6fb1b002.tar.gz |
classes: Drop Handled/NotHandled eventhandler keywords, they don't do anything
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'meta/classes/distrodata.bbclass')
-rw-r--r-- | meta/classes/distrodata.bbclass | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/meta/classes/distrodata.bbclass b/meta/classes/distrodata.bbclass index 0378790f70..1866f98561 100644 --- a/meta/classes/distrodata.bbclass +++ b/meta/classes/distrodata.bbclass | |||
@@ -3,8 +3,6 @@ require conf/distro/include/distro_tracking_fields.inc | |||
3 | 3 | ||
4 | addhandler distro_eventhandler | 4 | addhandler distro_eventhandler |
5 | python distro_eventhandler() { | 5 | python distro_eventhandler() { |
6 | from bb.event import Handled, NotHandled | ||
7 | # if bb.event.getName(e) == "TaskStarted": | ||
8 | 6 | ||
9 | if bb.event.getName(e) == "BuildStarted": | 7 | if bb.event.getName(e) == "BuildStarted": |
10 | """initialize log files.""" | 8 | """initialize log files.""" |
@@ -25,7 +23,7 @@ python distro_eventhandler() { | |||
25 | f.close() | 23 | f.close() |
26 | bb.utils.unlockfile(lf) | 24 | bb.utils.unlockfile(lf) |
27 | 25 | ||
28 | return NotHandled | 26 | return |
29 | } | 27 | } |
30 | 28 | ||
31 | addtask distrodata_np | 29 | addtask distrodata_np |
@@ -213,9 +211,6 @@ do_distrodataall() { | |||
213 | 211 | ||
214 | addhandler checkpkg_eventhandler | 212 | addhandler checkpkg_eventhandler |
215 | python checkpkg_eventhandler() { | 213 | python checkpkg_eventhandler() { |
216 | from bb.event import Handled, NotHandled | ||
217 | # if bb.event.getName(e) == "TaskStarted": | ||
218 | |||
219 | if bb.event.getName(e) == "BuildStarted": | 214 | if bb.event.getName(e) == "BuildStarted": |
220 | """initialize log files.""" | 215 | """initialize log files.""" |
221 | logpath = bb.data.getVar('LOG_DIR', e.data, 1) | 216 | logpath = bb.data.getVar('LOG_DIR', e.data, 1) |
@@ -235,7 +230,7 @@ python checkpkg_eventhandler() { | |||
235 | f.close() | 230 | f.close() |
236 | bb.utils.unlockfile(lf) | 231 | bb.utils.unlockfile(lf) |
237 | 232 | ||
238 | return NotHandled | 233 | return |
239 | } | 234 | } |
240 | 235 | ||
241 | addtask checkpkg | 236 | addtask checkpkg |
@@ -625,9 +620,6 @@ do_checkpkgall() { | |||
625 | 620 | ||
626 | #addhandler check_eventhandler | 621 | #addhandler check_eventhandler |
627 | python check_eventhandler() { | 622 | python check_eventhandler() { |
628 | from bb.event import Handled, NotHandled | ||
629 | # if bb.event.getName(e) == "TaskStarted": | ||
630 | |||
631 | if bb.event.getName(e) == "BuildStarted": | 623 | if bb.event.getName(e) == "BuildStarted": |
632 | import oe.distro_check as dc | 624 | import oe.distro_check as dc |
633 | tmpdir = bb.data.getVar('TMPDIR', e.data, 1) | 625 | tmpdir = bb.data.getVar('TMPDIR', e.data, 1) |
@@ -645,7 +637,7 @@ python check_eventhandler() { | |||
645 | os.symlink(logfile, slogfile) | 637 | os.symlink(logfile, slogfile) |
646 | bb.data.setVar('LOG_FILE', logfile, e.data) | 638 | bb.data.setVar('LOG_FILE', logfile, e.data) |
647 | 639 | ||
648 | return NotHandled | 640 | return |
649 | } | 641 | } |
650 | 642 | ||
651 | addtask distro_check | 643 | addtask distro_check |