diff options
Diffstat (limited to 'lib/bb/command.py')
-rw-r--r-- | lib/bb/command.py | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/lib/bb/command.py b/lib/bb/command.py index bdf1c3663..3527ad03c 100644 --- a/lib/bb/command.py +++ b/lib/bb/command.py @@ -90,8 +90,7 @@ class Command: (command, options) = self.currentAsyncCommand commandmethod = getattr(CommandsAsync, command) needcache = getattr( commandmethod, "needcache" ) - if (needcache and self.cooker.state in - (bb.cooker.state.initial, bb.cooker.state.parsing)): + if needcache and self.cooker.state != bb.cooker.state.running: self.cooker.updateCache() return True else: |