image.bbclass: fix bug in lingua code (code wasn't spitting entries like fr-fr and...
authorSteve Sakoman <steve@sakoman.com>
Thu, 6 Aug 2009 19:49:09 +0000 (12:49 -0700)
committerKoen Kooi <koen@openembedded.org>
Sat, 8 Aug 2009 09:20:07 +0000 (11:20 +0200)
classes/image.bbclass

index 385043b..f7afbab 100644 (file)
@@ -243,8 +243,10 @@ if [ -e ${IMAGE_ROOTFS}/usr/bin/opkg-cl ] ; then
        ${OPKG} list_installed | awk '{print $1}' |sort | uniq > /tmp/installed-packages
 
        for i in $(cat /tmp/installed-packages | grep -v locale) ; do
-               for translation in ${IMAGE_LINGUAS} $(echo ${IMAGE_LINGUAS} | awk -F_ '{print $1}'); do
+               for translation in ${IMAGE_LINGUAS}; do
+                       translation_split=$(echo ${translation} | awk -F '-' '{print $1}')
                        echo ${i}-locale-${translation}
+                       echo ${i}-locale-${translation_split}
                done
        done | sort | uniq > /tmp/wanted-locale-packages