[oe-commits] [bitbake] 01/04: command: Add mc parameter to findProviders command
git at git.openembedded.org
git at git.openembedded.org
Fri Mar 6 17:24:04 UTC 2020
This is an automated email from the git hooks/post-receive script.
rpurdie pushed a commit to branch master-next
in repository bitbake.
commit 95bb446137734865f3fe04fe97681d90250deb11
Author: Joshua Watt <jpewhacker at gmail.com>
AuthorDate: Wed Mar 4 14:02:23 2020 -0600
command: Add mc parameter to findProviders command
Adds a multiconfig selection parameter to the findProviders command.
This allows a client to find the providers for a specific multiconfig
instead of the base configuration.
Signed-off-by: Joshua Watt <JPEWhacker at gmail.com>
Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
lib/bb/command.py | 6 +++++-
1 file changed, 5 insertions(+), 1 deletion(-)
diff --git a/lib/bb/command.py b/lib/bb/command.py
index c8e1352..b38c151 100644
--- a/lib/bb/command.py
+++ b/lib/bb/command.py
@@ -414,7 +414,11 @@ class CommandsSync:
getAllAppends.readonly = True
def findProviders(self, command, params):
- return command.cooker.findProviders()
+ try:
+ mc = params[0]
+ except IndexError:
+ mc = ''
+ return command.cooker.findProviders(mc)
findProviders.readonly = True
def findBestProvider(self, command, params):
--
To stop receiving notification emails like this one, please contact
the administrator of this repository.
More information about the Openembedded-commits
mailing list