diff options
Diffstat (limited to 'classes')
-rw-r--r-- | classes/rootfs_ipk.oeclass | 7 |
1 files changed, 6 insertions, 1 deletions
diff --git a/classes/rootfs_ipk.oeclass b/classes/rootfs_ipk.oeclass index 772984cc2f..b725d39cdf 100644 --- a/classes/rootfs_ipk.oeclass +++ b/classes/rootfs_ipk.oeclass @@ -20,7 +20,7 @@ ROOTFS_POSTPROCESS_COMMAND ?= "" # some default locales IMAGE_LINGUAS ?= "de-de fr-fr en-gb" -IPKG_INSTALL =+ "${@" ".join(map(lambda s: "locale-base-%s" % s, oe.data.getVar('IMAGE_LINGUAS', d, 1).split()))}" +LINGUAS_INSTALL = "${@" ".join(map(lambda s: "locale-base-%s" % s, oe.data.getVar('IMAGE_LINGUAS', d, 1).split()))}" real_do_rootfs () { set -x @@ -50,6 +50,11 @@ EOF fi done ipkg-cl ${IPKG_ARGS} update + if [ ! -z "${LINGUAS_INSTALL}" ]; then + for i in ${LINGUAS_INSTALL}; do + ipkg-cl ${IPKG_ARGS} install $i + done + fi if [ ! -z "${IPKG_INSTALL}" ]; then ipkg-cl ${IPKG_ARGS} install ${IPKG_INSTALL} fi |