diff options
author | Andreas Müller <schnitzeltony@gmail.com> | 2019-10-27 21:30:40 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2019-10-31 16:09:34 +0000 |
commit | 29b733d7b8759660742781e80de300a085c1d38d (patch) | |
tree | 0939ad77543744132d4a5554d7ecefb6437ad9fb /meta/lib/oe/package_manager.py | |
parent | b12c9e256db986cdd3489de4d9489e7029f15435 (diff) | |
download | poky-29b733d7b8759660742781e80de300a085c1d38d.tar.gz |
IMAGE_LINGUAS_COMPLEMENTARY: auto-add language packages other than locales
This change allows layers adding packages other than locales automatically to
images based on languages selected in IMAGE_LINGUAS.
E.g if a layer has recipes creating packages as:
| ${PN}-foo-en / ${PN}-foo-de / ${PN}-foo-it / ..
it would set
| IMAGE_LINGUAS_COMPLEMENTARY_append = " *-foo-%s"
in its layer.conf to enable auto-adding.
(From OE-Core rev: 3a9e9585aeb67234901b2f842113dbe20c3801b3)
Signed-off-by: Andreas Müller <schnitzeltony@gmail.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/lib/oe/package_manager.py')
-rw-r--r-- | meta/lib/oe/package_manager.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/lib/oe/package_manager.py b/meta/lib/oe/package_manager.py index c841fdbf29..c7135ce918 100644 --- a/meta/lib/oe/package_manager.py +++ b/meta/lib/oe/package_manager.py | |||
@@ -570,6 +570,8 @@ class PackageManager(object, metaclass=ABCMeta): | |||
570 | 570 | ||
571 | for lang in split_linguas: | 571 | for lang in split_linguas: |
572 | globs += " *-locale-%s" % lang | 572 | globs += " *-locale-%s" % lang |
573 | for complementary_linguas in (self.d.getVar('IMAGE_LINGUAS_COMPLEMENTARY') or "").split(): | ||
574 | globs += (" " + complementary_linguas) % lang | ||
573 | 575 | ||
574 | if globs is None: | 576 | if globs is None: |
575 | return | 577 | return |