summaryrefslogtreecommitdiffstats
path: root/bitbake
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/command.py10
1 files changed, 8 insertions, 2 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py
index 78a86ac4dc..390d4f1de3 100644
--- a/bitbake/lib/bb/command.py
+++ b/bitbake/lib/bb/command.py
@@ -141,6 +141,12 @@ class Command:
141 self.currentAsyncCommand = None 141 self.currentAsyncCommand = None
142 self.cooker.finishcommand() 142 self.cooker.finishcommand()
143 143
144def split_mc_pn(pn):
145 if pn.startswith("multiconfig:"):
146 _, mc, pn = pn.split(":", 2)
147 return (mc, pn)
148 return ('', pn)
149
144class CommandsSync: 150class CommandsSync:
145 """ 151 """
146 A class of synchronous commands 152 A class of synchronous commands
@@ -425,8 +431,8 @@ class CommandsSync:
425 findProviders.readonly = True 431 findProviders.readonly = True
426 432
427 def findBestProvider(self, command, params): 433 def findBestProvider(self, command, params):
428 pn = params[0] 434 (mc, pn) = split_mc_pn(params[0])
429 return command.cooker.findBestProvider(pn) 435 return command.cooker.findBestProvider(pn, mc)
430 findBestProvider.readonly = True 436 findBestProvider.readonly = True
431 437
432 def allProviders(self, command, params): 438 def allProviders(self, command, params):