aboutsummaryrefslogtreecommitdiffstats
path: root/bitbake/bin
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-07 14:14:04 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-13 22:33:24 +0100
commitdf9069d958fc9348f0afe63a7d0e0a0454ebe9b4 (patch)
tree2122a901f460608452873dda195add606d04a78c /bitbake/bin
parent8538c2291a2c8765a18a0d22aa7ac172d724a4b2 (diff)
downloadopenembedded-core-contrib-df9069d958fc9348f0afe63a7d0e0a0454ebe9b4.tar.gz
bitbake: bitbake-layers: ensure non-extended recipe name is preferred
In show-recipes and show-overlayed, we only list one variant of each recipe where multiple exist, therefore we should show the main one (e.g. in OpenEmbedded, we now show openssl and not nativesdk-openssl which would otherwise sort first.) Fixes [YOCTO #7514]. (Bitbake rev: c4172fe33f0c63eda7f4af2bd36a5e9738e13595) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/bin')
-rwxr-xr-xbitbake/bin/bitbake-layers8
1 files changed, 7 insertions, 1 deletions
diff --git a/bitbake/bin/bitbake-layers b/bitbake/bin/bitbake-layers
index c1c65aaa15..5116e598b3 100755
--- a/bitbake/bin/bitbake-layers
+++ b/bitbake/bin/bitbake-layers
@@ -501,7 +501,13 @@ skipped recipes will also be listed, with a " (skipped)" suffix.
if len(allproviders[p]) > 1 or not show_multi_provider_only:
pref = preferred_versions[p]
- preffile = bb.cache.Cache.virtualfn2realfn(pref[1])[0]
+ realfn = bb.cache.Cache.virtualfn2realfn(pref[1])
+ preffile = realfn[0]
+ # 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.bbhandler.cooker.recipecache.pkg_fn:
+ continue
if preffile not in preffiles:
preflayer = self.get_file_layer(preffile)
multilayer = False