diff options
Diffstat (limited to 'bitbake/lib/bb/runqueue.py')
| -rw-r--r-- | bitbake/lib/bb/runqueue.py | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/bitbake/lib/bb/runqueue.py b/bitbake/lib/bb/runqueue.py index 0e5d5c35a9..d4b2cd49aa 100644 --- a/bitbake/lib/bb/runqueue.py +++ b/bitbake/lib/bb/runqueue.py | |||
| @@ -1724,6 +1724,15 @@ class runQueueEvent(bb.event.Event): | |||
| 1724 | self.stats = stats.copy() | 1724 | self.stats = stats.copy() |
| 1725 | bb.event.Event.__init__(self) | 1725 | bb.event.Event.__init__(self) |
| 1726 | 1726 | ||
| 1727 | class sceneQueueEvent(runQueueEvent): | ||
| 1728 | """ | ||
| 1729 | Base sceneQueue event class | ||
| 1730 | """ | ||
| 1731 | def __init__(self, task, stats, rq, noexec=False): | ||
| 1732 | runQueueEvent.__init__(self, task, stats, rq) | ||
| 1733 | realtask = rq.rqdata.runq_setscene[task] | ||
| 1734 | self.taskstring = rq.rqdata.get_user_idstring(realtask, "_setscene") | ||
| 1735 | |||
| 1727 | class runQueueTaskStarted(runQueueEvent): | 1736 | class runQueueTaskStarted(runQueueEvent): |
| 1728 | """ | 1737 | """ |
| 1729 | Event notifing a task was started | 1738 | Event notifing a task was started |
| @@ -1732,12 +1741,12 @@ class runQueueTaskStarted(runQueueEvent): | |||
| 1732 | runQueueEvent.__init__(self, task, stats, rq) | 1741 | runQueueEvent.__init__(self, task, stats, rq) |
| 1733 | self.noexec = noexec | 1742 | self.noexec = noexec |
| 1734 | 1743 | ||
| 1735 | class sceneQueueTaskStarted(runQueueEvent): | 1744 | class sceneQueueTaskStarted(sceneQueueEvent): |
| 1736 | """ | 1745 | """ |
| 1737 | Event notifing a setscene task was started | 1746 | Event notifing a setscene task was started |
| 1738 | """ | 1747 | """ |
| 1739 | def __init__(self, task, stats, rq, noexec=False): | 1748 | def __init__(self, task, stats, rq, noexec=False): |
| 1740 | runQueueEvent.__init__(self, task, stats, rq) | 1749 | sceneQueueEvent.__init__(self, task, stats, rq) |
| 1741 | self.noexec = noexec | 1750 | self.noexec = noexec |
| 1742 | 1751 | ||
| 1743 | class runQueueTaskFailed(runQueueEvent): | 1752 | class runQueueTaskFailed(runQueueEvent): |
| @@ -1748,14 +1757,13 @@ class runQueueTaskFailed(runQueueEvent): | |||
| 1748 | runQueueEvent.__init__(self, task, stats, rq) | 1757 | runQueueEvent.__init__(self, task, stats, rq) |
| 1749 | self.exitcode = exitcode | 1758 | self.exitcode = exitcode |
| 1750 | 1759 | ||
| 1751 | class sceneQueueTaskFailed(runQueueEvent): | 1760 | class sceneQueueTaskFailed(sceneQueueEvent): |
| 1752 | """ | 1761 | """ |
| 1753 | Event notifing a setscene task failed | 1762 | Event notifing a setscene task failed |
| 1754 | """ | 1763 | """ |
| 1755 | def __init__(self, task, stats, exitcode, rq): | 1764 | def __init__(self, task, stats, exitcode, rq): |
| 1756 | runQueueEvent.__init__(self, task, stats, rq) | 1765 | sceneQueueEvent.__init__(self, task, stats, rq) |
| 1757 | self.exitcode = exitcode | 1766 | self.exitcode = exitcode |
| 1758 | self.taskstring = rq.rqdata.get_user_idstring(task, "_setscene") | ||
| 1759 | 1767 | ||
| 1760 | class runQueueTaskCompleted(runQueueEvent): | 1768 | class runQueueTaskCompleted(runQueueEvent): |
| 1761 | """ | 1769 | """ |
