summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSteve Sakoman <steve@sakoman.com>2009-08-06 12:49:09 -0700
committerKoen Kooi <koen@openembedded.org>2009-08-08 11:20:07 +0200
commit6c47435bdb4abb5e5c4831ff774fe2c604d3aadf (patch)
tree058c4b2782a5f1435a954e81967e5e47523f1a12
parentb41a97d3bb86cb744b4a8434568b2262e6c34154 (diff)
image.bbclass: fix bug in lingua code (code wasn't spitting entries like fr-fr and thus locale-fr packages were bing omitted)
-rw-r--r--classes/image.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/classes/image.bbclass b/classes/image.bbclass
index 385043bfc7..f7afbab81e 100644
--- a/classes/image.bbclass
+++ b/classes/image.bbclass
@@ -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