diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/command.py | 3 | ||||
-rw-r--r-- | bitbake/lib/bb/cooker.py | 1 |
2 files changed, 2 insertions, 2 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index bdf1c36636..3527ad03c1 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py | |||
@@ -90,8 +90,7 @@ class Command: | |||
90 | (command, options) = self.currentAsyncCommand | 90 | (command, options) = self.currentAsyncCommand |
91 | commandmethod = getattr(CommandsAsync, command) | 91 | commandmethod = getattr(CommandsAsync, command) |
92 | needcache = getattr( commandmethod, "needcache" ) | 92 | needcache = getattr( commandmethod, "needcache" ) |
93 | if (needcache and self.cooker.state in | 93 | if needcache and self.cooker.state != bb.cooker.state.running: |
94 | (bb.cooker.state.initial, bb.cooker.state.parsing)): | ||
95 | self.cooker.updateCache() | 94 | self.cooker.updateCache() |
96 | return True | 95 | return True |
97 | else: | 96 | else: |
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 97210ba4e3..5a848042f3 100644 --- a/bitbake/lib/bb/cooker.py +++ b/bitbake/lib/bb/cooker.py | |||
@@ -1168,6 +1168,7 @@ class BBCooker: | |||
1168 | if timestamp: | 1168 | if timestamp: |
1169 | return timestr | 1169 | return timestr |
1170 | 1170 | ||
1171 | # This is called for all async commands when self.state != running | ||
1171 | def updateCache(self): | 1172 | def updateCache(self): |
1172 | if self.state == state.running: | 1173 | if self.state == state.running: |
1173 | return | 1174 | return |