]> code.ossystems Code Review - openembedded-core.git/commitdiff
rootfs_ipk.bbclass: reformatted install_all_locales function
authorMarcin Juszkiewicz <hrw@openedhand.com>
Fri, 6 Jun 2008 14:14:10 +0000 (14:14 +0000)
committerMarcin Juszkiewicz <hrw@openedhand.com>
Fri, 6 Jun 2008 14:14:10 +0000 (14:14 +0000)
git-svn-id: https://svn.o-hand.com/repos/poky/trunk@4602 311d38ba-8fff-0310-9ca6-ca027cbcb966

meta/classes/rootfs_ipk.bbclass

index 5f7c741e6e6de310ec7f6a2b82e59466943ba842..d038686cc9c0a466010de3d9564ac6cc76686025 100644 (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)"`
     do
-       for lang in ${IMAGE_LOCALES}
-       do
-           if [ `opkg-cl ${IPKG_ARGS} info $pkg-locale-$lang | wc -l` -gt 0 ]
-           then
-                PACKAGES_TO_INSTALL="$PACKAGES_TO_INSTALL $pkg-locale-$lang"
-           fi
-       done
+        for lang in ${IMAGE_LOCALES}
+        do
+            if [ `opkg-cl ${IPKG_ARGS} info $pkg-locale-$lang | wc -l` -gt 0 ]
+            then
+                    PACKAGES_TO_INSTALL="$PACKAGES_TO_INSTALL $pkg-locale-$lang"
+            fi
+        done
     done
     if [ "$PACKAGES_TO_INSTALL" != "" ]
     then
-       opkg-cl ${IPKG_ARGS} install $PACKAGES_TO_INSTALL
+        opkg-cl ${IPKG_ARGS} install $PACKAGES_TO_INSTALL
     fi
 }