diff options
Diffstat (limited to 'bitbake/lib/bb/command.py')
-rw-r--r-- | bitbake/lib/bb/command.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index a634276608..7944faf981 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py | |||
@@ -109,7 +109,7 @@ class Command: | |||
109 | 109 | ||
110 | def runAsyncCommand(self, _, process_server, halt): | 110 | def runAsyncCommand(self, _, process_server, halt): |
111 | try: | 111 | try: |
112 | if self.cooker.state in (bb.cooker.state.error, bb.cooker.state.shutdown, bb.cooker.state.forceshutdown): | 112 | if self.cooker.state in (bb.cooker.State.ERROR, bb.cooker.State.SHUTDOWN, bb.cooker.State.FORCE_SHUTDOWN): |
113 | # updateCache will trigger a shutdown of the parser | 113 | # updateCache will trigger a shutdown of the parser |
114 | # and then raise BBHandledException triggering an exit | 114 | # and then raise BBHandledException triggering an exit |
115 | self.cooker.updateCache() | 115 | self.cooker.updateCache() |
@@ -119,7 +119,7 @@ class Command: | |||
119 | (command, options) = cmd | 119 | (command, options) = cmd |
120 | commandmethod = getattr(CommandsAsync, command) | 120 | commandmethod = getattr(CommandsAsync, command) |
121 | needcache = getattr( commandmethod, "needcache" ) | 121 | needcache = getattr( commandmethod, "needcache" ) |
122 | if needcache and self.cooker.state != bb.cooker.state.running: | 122 | if needcache and self.cooker.state != bb.cooker.State.RUNNING: |
123 | self.cooker.updateCache() | 123 | self.cooker.updateCache() |
124 | return True | 124 | return True |
125 | else: | 125 | else: |