diff options
Diffstat (limited to 'bitbake/lib/bb/command.py')
| -rw-r--r-- | bitbake/lib/bb/command.py | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py index b494f84a0a..8663eed933 100644 --- a/bitbake/lib/bb/command.py +++ b/bitbake/lib/bb/command.py | |||
| @@ -85,8 +85,6 @@ class Command: | |||
| 85 | if not hasattr(command_method, 'readonly') or not getattr(command_method, 'readonly'): | 85 | if not hasattr(command_method, 'readonly') or not getattr(command_method, 'readonly'): |
| 86 | return None, "Not able to execute not readonly commands in readonly mode" | 86 | return None, "Not able to execute not readonly commands in readonly mode" |
| 87 | try: | 87 | try: |
| 88 | if command != "ping": | ||
| 89 | self.cooker.process_inotify_updates_apply() | ||
| 90 | if getattr(command_method, 'needconfig', True): | 88 | if getattr(command_method, 'needconfig', True): |
| 91 | self.cooker.updateCacheSync() | 89 | self.cooker.updateCacheSync() |
| 92 | result = command_method(self, commandline) | 90 | result = command_method(self, commandline) |
| @@ -110,7 +108,6 @@ class Command: | |||
| 110 | 108 | ||
| 111 | def runAsyncCommand(self, _, process_server, halt): | 109 | def runAsyncCommand(self, _, process_server, halt): |
| 112 | try: | 110 | try: |
| 113 | self.cooker.process_inotify_updates_apply() | ||
| 114 | if self.cooker.state in (bb.cooker.state.error, bb.cooker.state.shutdown, bb.cooker.state.forceshutdown): | 111 | if self.cooker.state in (bb.cooker.state.error, bb.cooker.state.shutdown, bb.cooker.state.forceshutdown): |
| 115 | # updateCache will trigger a shutdown of the parser | 112 | # updateCache will trigger a shutdown of the parser |
| 116 | # and then raise BBHandledException triggering an exit | 113 | # and then raise BBHandledException triggering an exit |
| @@ -310,6 +307,11 @@ class CommandsSync: | |||
| 310 | return ret | 307 | return ret |
| 311 | getLayerPriorities.readonly = True | 308 | getLayerPriorities.readonly = True |
| 312 | 309 | ||
| 310 | def revalidateCaches(self, command, params): | ||
| 311 | """Called by UI clients when metadata may have changed""" | ||
| 312 | command.cooker.revalidateCaches() | ||
| 313 | parseConfiguration.needconfig = False | ||
| 314 | |||
| 313 | def getRecipes(self, command, params): | 315 | def getRecipes(self, command, params): |
| 314 | try: | 316 | try: |
| 315 | mc = params[0] | 317 | mc = params[0] |
