diff options
Diffstat (limited to 'bitbake/lib/toaster/orm/models.py')
-rw-r--r-- | bitbake/lib/toaster/orm/models.py | 12 |
1 files changed, 12 insertions, 0 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py index 588e1b9265..abc16d9b88 100644 --- a/bitbake/lib/toaster/orm/models.py +++ b/bitbake/lib/toaster/orm/models.py | |||
@@ -111,6 +111,15 @@ class Task(models.Model): | |||
111 | (OUTCOME_EMPTY, 'Empty'), | 111 | (OUTCOME_EMPTY, 'Empty'), |
112 | ) | 112 | ) |
113 | 113 | ||
114 | TASK_OUTCOME_HELP = { | ||
115 | OUTCOME_SUCCESS:'This task completed successfully', | ||
116 | OUTCOME_COVERED:'This task did not run because its output is provided by another task', | ||
117 | OUTCOME_CACHED:'This task restored output from the sstate-cache directory or mirrors', | ||
118 | OUTCOME_PREBUILT:'This task did not run because its outcome was reused from a previous build', | ||
119 | OUTCOME_FAILED:'This task did not complete', | ||
120 | OUTCOME_NA:'' | ||
121 | } | ||
122 | |||
114 | search_allowed_fields = [ "recipe__name", "recipe__version", "task_name", "logfile" ] | 123 | search_allowed_fields = [ "recipe__name", "recipe__version", "task_name", "logfile" ] |
115 | 124 | ||
116 | objects = TaskManager() | 125 | objects = TaskManager() |
@@ -118,6 +127,9 @@ class Task(models.Model): | |||
118 | def get_related_setscene(self): | 127 | def get_related_setscene(self): |
119 | return Task.objects.related_setscene(self) | 128 | return Task.objects.related_setscene(self) |
120 | 129 | ||
130 | def outcome_help(self): | ||
131 | return Task.TASK_OUTCOME_HELP[self.outcome] | ||
132 | |||
121 | def get_executed_display(self): | 133 | def get_executed_display(self): |
122 | if self.task_executed: | 134 | if self.task_executed: |
123 | return "Executed" | 135 | return "Executed" |