1
0
mirror of https://git.yoctoproject.org/poky synced 2026-05-09 17:39:31 +00:00

rootfs_ipk.bbclass: reformatted install_all_locales function

git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4602 311d38ba-8fff-0310-9ca6-ca027cbcb966
This commit is contained in:
Marcin Juszkiewicz
2008-06-06 14:14:10 +00:00
parent eedc6b9b2f
commit 99e0700b4b
+8 -8
View File
@@ -97,17 +97,17 @@ install_all_locales() {
for pkg in `grep ^Package: ${IMAGE_ROOTFS}${libdir}/opkg/status |sed "s/^Package: //"|egrep -v -- "(-locale-|-dev$|-doc$|^kernel|^glibc|^ttf|^task|^perl|^python)"` for pkg in `grep ^Package: ${IMAGE_ROOTFS}${libdir}/opkg/status |sed "s/^Package: //"|egrep -v -- "(-locale-|-dev$|-doc$|^kernel|^glibc|^ttf|^task|^perl|^python)"`
do do
for lang in ${IMAGE_LOCALES} for lang in ${IMAGE_LOCALES}
do do
if [ `opkg-cl ${IPKG_ARGS} info $pkg-locale-$lang | wc -l` -gt 0 ] if [ `opkg-cl ${IPKG_ARGS} info $pkg-locale-$lang | wc -l` -gt 0 ]
then then
PACKAGES_TO_INSTALL="$PACKAGES_TO_INSTALL $pkg-locale-$lang" PACKAGES_TO_INSTALL="$PACKAGES_TO_INSTALL $pkg-locale-$lang"
fi fi
done done
done done
if [ "$PACKAGES_TO_INSTALL" != "" ] if [ "$PACKAGES_TO_INSTALL" != "" ]
then then
opkg-cl ${IPKG_ARGS} install $PACKAGES_TO_INSTALL opkg-cl ${IPKG_ARGS} install $PACKAGES_TO_INSTALL
fi fi
} }