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.py21
1 files changed, 18 insertions, 3 deletions
diff --git a/bitbake/lib/bb/command.py b/bitbake/lib/bb/command.py
index 1fcb9bf14c..5e166fe45c 100644
--- a/bitbake/lib/bb/command.py
+++ b/bitbake/lib/bb/command.py
@@ -420,15 +420,30 @@ class CommandsSync:
420 return command.cooker.recipecaches[mc].pkg_dp 420 return command.cooker.recipecaches[mc].pkg_dp
421 getDefaultPreference.readonly = True 421 getDefaultPreference.readonly = True
422 422
423
423 def getSkippedRecipes(self, command, params): 424 def getSkippedRecipes(self, command, params):
425 """
426 Get the map of skipped recipes for the specified multiconfig/mc name (`params[0]`).
427
428 Invoked by `bb.tinfoil.Tinfoil.get_skipped_recipes`
429
430 :param command: Internally used parameter.
431 :param params: Parameter array. params[0] is multiconfig/mc name. If not given, then default mc '' is assumed.
432 :return: Dict whose keys are virtualfns and values are `bb.cooker.SkippedPackage`
433 """
434 try:
435 mc = params[0]
436 except IndexError:
437 mc = ''
438
424 # Return list sorted by reverse priority order 439 # Return list sorted by reverse priority order
425 import bb.cache 440 import bb.cache
426 def sortkey(x): 441 def sortkey(x):
427 vfn, _ = x 442 vfn, _ = x
428 realfn, _, mc = bb.cache.virtualfn2realfn(vfn) 443 realfn, _, item_mc = bb.cache.virtualfn2realfn(vfn)
429 return (-command.cooker.collections[mc].calc_bbfile_priority(realfn)[0], vfn) 444 return -command.cooker.collections[item_mc].calc_bbfile_priority(realfn)[0], vfn
430 445
431 skipdict = OrderedDict(sorted(command.cooker.skiplist.items(), key=sortkey)) 446 skipdict = OrderedDict(sorted(command.cooker.skiplist_by_mc[mc].items(), key=sortkey))
432 return list(skipdict.items()) 447 return list(skipdict.items())
433 getSkippedRecipes.readonly = True 448 getSkippedRecipes.readonly = True
434 449