diff options
Diffstat (limited to 'lib/bblayers')
-rw-r--r-- | lib/bblayers/action.py | 2 | ||||
-rw-r--r-- | lib/bblayers/query.py | 12 |
2 files changed, 7 insertions, 7 deletions
diff --git a/lib/bblayers/action.py b/lib/bblayers/action.py index d4c1792f6..739ae27b9 100644 --- a/lib/bblayers/action.py +++ b/lib/bblayers/action.py @@ -173,7 +173,7 @@ build results (as the layer priority order has effectively changed). # have come from) first_regex = None layerdir = layers[0] - for layername, pattern, regex, _ in self.tinfoil.cooker.recipecache.bbfile_config_priorities: + for layername, pattern, regex, _ in self.tinfoil.cooker.bbfile_config_priorities: if regex.match(os.path.join(layerdir, 'test')): first_regex = regex break diff --git a/lib/bblayers/query.py b/lib/bblayers/query.py index 6e62082a2..ee1e7c8a1 100644 --- a/lib/bblayers/query.py +++ b/lib/bblayers/query.py @@ -23,7 +23,7 @@ class QueryPlugin(LayerPlugin): """show current configured layers.""" logger.plain("%s %s %s" % ("layer".ljust(20), "path".ljust(40), "priority")) logger.plain('=' * 74) - for layer, _, regex, pri in self.tinfoil.cooker.recipecache.bbfile_config_priorities: + for layer, _, regex, pri in self.tinfoil.cooker.bbfile_config_priorities: layerdir = self.bbfile_collections.get(layer, None) layername = self.get_layer_name(layerdir) logger.plain("%s %s %d" % (layername.ljust(20), layerdir.ljust(40), pri)) @@ -121,9 +121,9 @@ skipped recipes will also be listed, with a " (skipped)" suffix. logger.error('No class named %s found in BBPATH', classfile) sys.exit(1) - pkg_pn = self.tinfoil.cooker.recipecache.pkg_pn - (latest_versions, preferred_versions) = bb.providers.findProviders(self.tinfoil.config_data, self.tinfoil.cooker.recipecache, pkg_pn) - allproviders = bb.providers.allProviders(self.tinfoil.cooker.recipecache) + pkg_pn = self.tinfoil.cooker.recipecaches[''].pkg_pn + (latest_versions, preferred_versions) = bb.providers.findProviders(self.tinfoil.config_data, self.tinfoil.cooker.recipecaches[''], pkg_pn) + allproviders = bb.providers.allProviders(self.tinfoil.cooker.recipecaches['']) # Ensure we list skipped recipes # We are largely guessing about PN, PV and the preferred version here, @@ -176,7 +176,7 @@ skipped recipes will also be listed, with a " (skipped)" suffix. # We only display once per recipe, we should prefer non extended versions of the # recipe if present (so e.g. in OpenEmbedded, openssl rather than nativesdk-openssl # which would otherwise sort first). - if realfn[1] and realfn[0] in self.tinfoil.cooker.recipecache.pkg_fn: + if realfn[1] and realfn[0] in self.tinfoil.cooker.recipecaches[''].pkg_fn: continue if inherits: @@ -297,7 +297,7 @@ Lists recipes with the bbappends that apply to them as subitems. def get_appends_for_files(self, filenames): appended, notappended = [], [] for filename in filenames: - _, cls = bb.cache.virtualfn2realfn(filename) + _, cls, _ = bb.cache.virtualfn2realfn(filename) if cls: continue |