diff options
author | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-06-05 20:51:43 +0000 |
---|---|---|
committer | Marcin Juszkiewicz <hrw@openedhand.com> | 2008-06-05 20:51:43 +0000 |
commit | 626a4ac599a905386c7638bb48660baa406d4805 (patch) | |
tree | 63fbf0c43babebb3f3ae3f969b539e4e4a184d8a /meta/classes | |
parent | 14b747cb793881f4beab172c614ba6355bb9be02 (diff) | |
download | poky-626a4ac599a905386c7638bb48660baa406d4805.tar.gz |
rootfs_ipk.bbclass: added install_all_locales function
This code checks which packages got installed in rootfs and install
locale packages for all languages (taken from IMAGE_LOCALES).
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4588 311d38ba-8fff-0310-9ca6-ca027cbcb966
Diffstat (limited to 'meta/classes')
-rw-r--r-- | meta/classes/rootfs_ipk.bbclass | 21 |
1 files changed, 21 insertions, 0 deletions
diff --git a/meta/classes/rootfs_ipk.bbclass b/meta/classes/rootfs_ipk.bbclass index 2f18a24a79..466edfb059 100644 --- a/meta/classes/rootfs_ipk.bbclass +++ b/meta/classes/rootfs_ipk.bbclass | |||
@@ -87,3 +87,24 @@ rootfs_ipk_log_check() { | |||
87 | remove_packaging_data_files() { | 87 | remove_packaging_data_files() { |
88 | rm -rf ${IMAGE_ROOTFS}/usr/lib/opkg/ | 88 | rm -rf ${IMAGE_ROOTFS}/usr/lib/opkg/ |
89 | } | 89 | } |
90 | |||
91 | install_all_locales() { | ||
92 | |||
93 | PACKAGES_TO_INSTALL="" | ||
94 | |||
95 | for pkg in `grep ^Package: ${IMAGE_ROOTFS}${libdir}/opkg/status |sed "s/^Package: //"|egrep -v -- "(-locale-|-dev$|-doc$|^kernel|^glibc|^ttf|^task|^perl|^python)"` | ||
96 | do | ||
97 | for lang in ${IMAGE_LOCALES} | ||
98 | do | ||
99 | if [ `opkg-cl ${IPKG_ARGS} info $pkg-locale-$lang | wc -l` -gt 0 ] | ||
100 | then | ||
101 | PACKAGES_TO_INSTALL="$PACKAGES_TO_INSTALL $pkg-locale-$lang" | ||
102 | fi | ||
103 | done | ||
104 | done | ||
105 | if [ "$PACKAGES_TO_INSTALL" != "" ] | ||
106 | then | ||
107 | opkg-cl ${IPKG_ARGS} install $PACKAGES_TO_INSTALL | ||
108 | fi | ||
109 | } | ||
110 | |||