summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/command.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/command.py')
-rw-r--r--bitbake/lib/bb/command.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py
index c44c7a6a5e..a9232455cc 100644
--- a/bitbake/lib/bb/command.py
+++ b/bitbake/lib/bb/command.py
@@ -78,6 +78,7 @@ class Command:
78 if not hasattr(command_method, 'readonly') or False == getattr(command_method, 'readonly'): 78 if not hasattr(command_method, 'readonly') or False == getattr(command_method, 'readonly'):
79 return None, "Not able to execute not readonly commands in readonly mode" 79 return None, "Not able to execute not readonly commands in readonly mode"
80 try: 80 try:
81 self.cooker.process_inotify_updates()
81 if getattr(command_method, 'needconfig', False): 82 if getattr(command_method, 'needconfig', False):
82 self.cooker.updateCacheSync() 83 self.cooker.updateCacheSync()
83 result = command_method(self, commandline) 84 result = command_method(self, commandline)
@@ -98,6 +99,7 @@ class Command:
98 99
99 def runAsyncCommand(self): 100 def runAsyncCommand(self):
100 try: 101 try:
102 self.cooker.process_inotify_updates()
101 if self.cooker.state in (bb.cooker.state.error, bb.cooker.state.shutdown, bb.cooker.state.forceshutdown): 103 if self.cooker.state in (bb.cooker.state.error, bb.cooker.state.shutdown, bb.cooker.state.forceshutdown):
102 # updateCache will trigger a shutdown of the parser 104 # updateCache will trigger a shutdown of the parser
103 # and then raise BBHandledException triggering an exit 105 # and then raise BBHandledException triggering an exit