diff options
Diffstat (limited to 'bitbake/lib/bb/command.py')
| -rw-r--r-- | bitbake/lib/bb/command.py | 7 | 
1 files changed, 4 insertions, 3 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index 9a8d689e2a..654ede0e85 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py  | |||
| @@ -81,7 +81,8 @@ class Command: | |||
| 81 | (command, options) = self.currentAsyncCommand | 81 | (command, options) = self.currentAsyncCommand | 
| 82 | commandmethod = getattr(CommandsAsync, command) | 82 | commandmethod = getattr(CommandsAsync, command) | 
| 83 | needcache = getattr( commandmethod, "needcache" ) | 83 | needcache = getattr( commandmethod, "needcache" ) | 
| 84 | if needcache and self.cooker.cookerState != bb.cooker.cookerParsed: | 84 | if (needcache and self.cooker.state in | 
| 85 | (bb.cooker.state.initial, bb.cooker.state.parsing)): | ||
| 85 | self.cooker.updateCache() | 86 | self.cooker.updateCache() | 
| 86 | return True | 87 | return True | 
| 87 | else: | 88 | else: | 
| @@ -123,13 +124,13 @@ class CommandsSync: | |||
| 123 | """ | 124 | """ | 
| 124 | Trigger cooker 'shutdown' mode | 125 | Trigger cooker 'shutdown' mode | 
| 125 | """ | 126 | """ | 
| 126 | command.cooker.cookerAction = bb.cooker.cookerShutdown | 127 | command.cooker.state = bb.cooker.state.shutdown | 
| 127 | 128 | ||
| 128 | def stateStop(self, command, params): | 129 | def stateStop(self, command, params): | 
| 129 | """ | 130 | """ | 
| 130 | Stop the cooker | 131 | Stop the cooker | 
| 131 | """ | 132 | """ | 
| 132 | command.cooker.cookerAction = bb.cooker.cookerStop | 133 | command.cooker.state = bb.cooker.state.stop | 
| 133 | 134 | ||
| 134 | def getCmdLineAction(self, command, params): | 135 | def getCmdLineAction(self, command, params): | 
| 135 | """ | 136 | """ | 
