diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-04-07 14:14:04 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2015-05-15 18:12:50 +0100 |
commit | 4dc652a0c33321f5079448b0f182c8b8f7b2b4f6 (patch) | |
tree | f2fc76b317cf87f3a6903a32238e2b120a916a04 /bitbake | |
parent | 83ac75ffb3d265dce82f7fd1c6cb6f9386c3f6c7 (diff) | |
download | poky-4dc652a0c33321f5079448b0f182c8b8f7b2b4f6.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: 8e0211d121e4cb1124dfe879db751ad00f5c978b)
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')
-rwxr-xr-x | bitbake/bin/bitbake-layers | 8 |
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. | |||
501 | 501 | ||
502 | if len(allproviders[p]) > 1 or not show_multi_provider_only: | 502 | if len(allproviders[p]) > 1 or not show_multi_provider_only: |
503 | pref = preferred_versions[p] | 503 | pref = preferred_versions[p] |
504 | preffile = bb.cache.Cache.virtualfn2realfn(pref[1])[0] | 504 | realfn = bb.cache.Cache.virtualfn2realfn(pref[1]) |
505 | preffile = realfn[0] | ||
506 | # We only display once per recipe, we should prefer non extended versions of the | ||
507 | # recipe if present (so e.g. in OpenEmbedded, openssl rather than nativesdk-openssl | ||
508 | # which would otherwise sort first). | ||
509 | if realfn[1] and realfn[0] in self.bbhandler.cooker.recipecache.pkg_fn: | ||
510 | continue | ||
505 | if preffile not in preffiles: | 511 | if preffile not in preffiles: |
506 | preflayer = self.get_file_layer(preffile) | 512 | preflayer = self.get_file_layer(preffile) |
507 | multilayer = False | 513 | multilayer = False |