diff options
Diffstat (limited to 'bitbake/lib/toaster/bldcontrol/models.py')
-rw-r--r-- | bitbake/lib/toaster/bldcontrol/models.py | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/bitbake/lib/toaster/bldcontrol/models.py b/bitbake/lib/toaster/bldcontrol/models.py index f06c562a38..f055480686 100644 --- a/bitbake/lib/toaster/bldcontrol/models.py +++ b/bitbake/lib/toaster/bldcontrol/models.py | |||
@@ -63,20 +63,20 @@ class BuildRequest(models.Model): | |||
63 | REQ_CREATED = 0 | 63 | REQ_CREATED = 0 |
64 | REQ_QUEUED = 1 | 64 | REQ_QUEUED = 1 |
65 | REQ_INPROGRESS = 2 | 65 | REQ_INPROGRESS = 2 |
66 | REQ_COMPLETED = 3 | 66 | REQ_FAILED = 3 |
67 | REQ_FAILED = 4 | 67 | REQ_DELETED = 4 |
68 | REQ_DELETED = 5 | 68 | REQ_CANCELLING = 5 |
69 | REQ_CANCELLING = 6 | 69 | REQ_COMPLETED = 6 |
70 | REQ_ARCHIVE = 7 | 70 | REQ_ARCHIVE = 7 |
71 | 71 | ||
72 | REQUEST_STATE = ( | 72 | REQUEST_STATE = ( |
73 | (REQ_CREATED, "created"), | 73 | (REQ_CREATED, "created"), |
74 | (REQ_QUEUED, "queued"), | 74 | (REQ_QUEUED, "queued"), |
75 | (REQ_INPROGRESS, "in progress"), | 75 | (REQ_INPROGRESS, "in progress"), |
76 | (REQ_COMPLETED, "completed"), | ||
77 | (REQ_FAILED, "failed"), | 76 | (REQ_FAILED, "failed"), |
78 | (REQ_DELETED, "deleted"), | 77 | (REQ_DELETED, "deleted"), |
79 | (REQ_CANCELLING, "cancelling"), | 78 | (REQ_CANCELLING, "cancelling"), |
79 | (REQ_COMPLETED, "completed"), | ||
80 | (REQ_ARCHIVE, "archive"), | 80 | (REQ_ARCHIVE, "archive"), |
81 | ) | 81 | ) |
82 | 82 | ||
@@ -91,7 +91,7 @@ class BuildRequest(models.Model): | |||
91 | 91 | ||
92 | def __init__(self, *args, **kwargs): | 92 | def __init__(self, *args, **kwargs): |
93 | super(BuildRequest, self).__init__(*args, **kwargs) | 93 | super(BuildRequest, self).__init__(*args, **kwargs) |
94 | # Save the old state incase it's about to be modified | 94 | # Save the old state in case it's about to be modified |
95 | self.old_state = self.state | 95 | self.old_state = self.state |
96 | 96 | ||
97 | def save(self, *args, **kwargs): | 97 | def save(self, *args, **kwargs): |