summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/toaster/orm/models.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/toaster/orm/models.py')
-rw-r--r--bitbake/lib/toaster/orm/models.py7
1 files changed, 5 insertions, 2 deletions
diff --git a/bitbake/lib/toaster/orm/models.py b/bitbake/lib/toaster/orm/models.py
index f96da9c339..af44d86ff3 100644
--- a/bitbake/lib/toaster/orm/models.py
+++ b/bitbake/lib/toaster/orm/models.py
@@ -93,20 +93,22 @@ class Task(models.Model):
93 (CODING_SHELL, 'Shell'), 93 (CODING_SHELL, 'Shell'),
94 ) 94 )
95 95
96 OUTCOME_NA = -1
96 OUTCOME_SUCCESS = 0 97 OUTCOME_SUCCESS = 0
97 OUTCOME_COVERED = 1 98 OUTCOME_COVERED = 1
98 OUTCOME_CACHED = 2 99 OUTCOME_CACHED = 2
99 OUTCOME_PREBUILT = 3 100 OUTCOME_PREBUILT = 3
100 OUTCOME_FAILED = 4 101 OUTCOME_FAILED = 4
101 OUTCOME_NA = 5 102 OUTCOME_EMPTY = 5
102 103
103 TASK_OUTCOME = ( 104 TASK_OUTCOME = (
105 (OUTCOME_NA, 'Not Available'),
104 (OUTCOME_SUCCESS, 'Succeeded'), 106 (OUTCOME_SUCCESS, 'Succeeded'),
105 (OUTCOME_COVERED, 'Covered'), 107 (OUTCOME_COVERED, 'Covered'),
106 (OUTCOME_CACHED, 'Cached'), 108 (OUTCOME_CACHED, 'Cached'),
107 (OUTCOME_PREBUILT, 'Prebuilt'), 109 (OUTCOME_PREBUILT, 'Prebuilt'),
108 (OUTCOME_FAILED, 'Failed'), 110 (OUTCOME_FAILED, 'Failed'),
109 (OUTCOME_NA, 'Not Available'), 111 (OUTCOME_EMPTY, 'Empty'),
110 ) 112 )
111 113
112 search_allowed_fields = [ "recipe__name", "task_name" ] 114 search_allowed_fields = [ "recipe__name", "task_name" ]
@@ -142,6 +144,7 @@ class Task(models.Model):
142 144
143 class Meta: 145 class Meta:
144 ordering = ('order', 'recipe' ,) 146 ordering = ('order', 'recipe' ,)
147 unique_together = ('build', 'recipe', 'task_name', )
145 148
146 149
147class Task_Dependency(models.Model): 150class Task_Dependency(models.Model):