[oe-commits] Steve Sakoman : image.bbclass: fix bug in lingua code (code wasn' t spitting entries like fr-fr and thus locale-fr packages were bing omitted )

git version control git at git.openembedded.org
Sat Aug 8 09:21:44 UTC 2009


Module: openembedded.git
Branch: org.openembedded.dev
Commit: 6c47435bdb4abb5e5c4831ff774fe2c604d3aadf
URL:    http://gitweb.openembedded.net/?p=openembedded.git&a=commit;h=6c47435bdb4abb5e5c4831ff774fe2c604d3aadf

Author: Steve Sakoman <steve at sakoman.com>
Date:   Thu Aug  6 12:49:09 2009 -0700

image.bbclass: fix bug in lingua code (code wasn't spitting entries like fr-fr and thus locale-fr packages were bing omitted)

---

 classes/image.bbclass |    4 +++-
 1 files changed, 3 insertions(+), 1 deletions(-)

diff --git a/classes/image.bbclass b/classes/image.bbclass
index 385043b..f7afbab 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
 





More information about the Openembedded-commits mailing list