]> code.ossystems Code Review - openembedded-core.git/commit
sdk: Fix SDKIMAGE_LINGUAS handling
authorRichard Weinberger <richard@nod.at>
Wed, 9 Jan 2019 20:42:19 +0000 (21:42 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 11 Jan 2019 10:38:21 +0000 (10:38 +0000)
commit475a5d9ec21a329be973691734f9e8bcb332338c
treeb398537b486616c1abe75739dd9588b39dea4f37
parentc2e069a7f8396d0fe62ad75b76202c29ea84d21c
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")
Signed-off-by: Richard Weinberger <richard@nod.at>
Signed-off-by: Ross Burton <ross.burton@intel.com>
meta/lib/oe/sdk.py