summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRichard Weinberger <richard@nod.at>2019-01-09 21:42:19 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2019-01-11 10:39:09 +0000
commitc5f7615505b2a51125932065014edbf272bd6798 (patch)
tree9be70b8fb07687968ed42cb0c541ef391785517b /meta
parentb1c2ef099cdb49655f4ae0d9cf9c5baef997e833 (diff)
downloadpoky-c5f7615505b2a51125932065014edbf272bd6798.tar.gz
sdk: Fix SDKIMAGE_LINGUAS handling
Currently SDKIMAGE_LINGUAS is broken for any inputs except "all". In the non-"all" case, each enabled language package is installed via pm.install("nativesdk-glibc-binary-localedata-%s.utf-8" % lang) This will throw a python exception since pm.install() expects a list of strings and not a string. Fix the problem by constructing a list. That way it is now also possible to call the package installer just once. Cc: "Burton, Ross" <ross.burton@intel.com> Fixes: 67615e01751b ("rootfs_rpm.bbclass: migrate image creation to dnf") (From OE-Core rev: 475a5d9ec21a329be973691734f9e8bcb332338c) Signed-off-by: Richard Weinberger <richard@nod.at> Signed-off-by: Ross Burton <ross.burton@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta')
-rw-r--r--meta/lib/oe/sdk.py4
1 files changed, 2 insertions, 2 deletions
diff --git a/meta/lib/oe/sdk.py b/meta/lib/oe/sdk.py
index 153b07d76b..878ee1647f 100644
--- a/meta/lib/oe/sdk.py
+++ b/meta/lib/oe/sdk.py
@@ -95,8 +95,8 @@ class Sdk(object, metaclass=ABCMeta):
95 if linguas == "all": 95 if linguas == "all":
96 pm.install_glob("nativesdk-glibc-binary-localedata-*.utf-8", sdk=True) 96 pm.install_glob("nativesdk-glibc-binary-localedata-*.utf-8", sdk=True)
97 else: 97 else:
98 for lang in linguas.split(): 98 pm.install(["nativesdk-glibc-binary-localedata-%s.utf-8" % \
99 pm.install("nativesdk-glibc-binary-localedata-%s.utf-8" % lang) 99 lang for lang in linguas.split()])
100 # Generate a locale archive of them 100 # Generate a locale archive of them
101 target_arch = self.d.getVar('SDK_ARCH') 101 target_arch = self.d.getVar('SDK_ARCH')
102 rootfs = oe.path.join(self.sdk_host_sysroot, self.sdk_native_path) 102 rootfs = oe.path.join(self.sdk_host_sysroot, self.sdk_native_path)