]> code.ossystems Code Review - openembedded-core.git/commitdiff
package_{ipk, deb, rpm}: drop the TARGET_OS conditional
authorChristopher Larson <chris_larson@mentor.com>
Wed, 20 Mar 2013 22:21:31 +0000 (15:21 -0700)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 22 Mar 2013 16:30:27 +0000 (16:30 +0000)
The tclibc file for uclibc already empties IMAGE_LINGUAS, so there's no point
to this conditional as far as I can tell, and it can cause issues for certain
values of TARGET_OS.

Signed-off-by: Christopher Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/classes/package_deb.bbclass
meta/classes/package_ipk.bbclass
meta/classes/package_rpm.bbclass

index 84b1c522e73dbef8500c43ff655c529774c74b42..455919913b7165f936e94acc7e1b00fda69b39cb 100644 (file)
@@ -101,16 +101,13 @@ package_install_internal_deb () {
 
        apt-get update
 
-       # Uclibc builds don't provide this stuff..
-       if [ x${TARGET_OS} = "xlinux" ] || [ x${TARGET_OS} = "xlinux-gnueabi" ] ; then
-               if [ ! -z "${package_linguas}" ]; then
-                       for i in ${package_linguas}; do
-                               apt-get install $i --force-yes --allow-unauthenticated
-                               if [ $? -ne 0 ]; then
-                                       exit 1
-                               fi
-                       done
-               fi
+       if [ ! -z "${package_linguas}" ]; then
+               for i in ${package_linguas}; do
+                       apt-get install $i --force-yes --allow-unauthenticated
+                       if [ $? -ne 0 ]; then
+                               exit 1
+                       fi
+               done
        fi
 
        # normal install
index 094ba09fcfd7630e22916904e584911161de2cd3..d003ae7e81165a0569f3726e800f6c4d36c3b616 100644 (file)
@@ -90,14 +90,9 @@ package_install_internal_ipk() {
 
        opkg-cl ${ipkg_args} update
 
-       # Uclibc builds don't provide this stuff...
-       if [ x${TARGET_OS} = "xlinux" ] || [ x${TARGET_OS} = "xlinux-gnueabi" ] ; then
-               if [ ! -z "${package_linguas}" ]; then
-                       for i in ${package_linguas}; do
-                               opkg-cl ${ipkg_args} install $i
-                       done
-               fi
-       fi
+       for i in ${package_linguas}; do
+               opkg-cl ${ipkg_args} install $i
+       done
 
        if [ ! -z "${package_to_install}" ]; then
                opkg-cl ${ipkg_args} install ${package_to_install}
index b6d76e7a3bb94450cf1e9fce5ae683cdb89e9725..12b4bfa536017f8b463e343c151d15d581fe4612 100644 (file)
@@ -368,11 +368,6 @@ EOF
                done
        fi
 
-       # Uclibc builds don't provide this stuff...
-       if [ x${TARGET_OS} != "xlinux" ] && [ x${TARGET_OS} != "xlinux-gnueabi" ] ; then
-               package_linguas=""
-       fi
-
        # Construct install scriptlet wrapper
        cat << EOF > ${WORKDIR}/scriptlet_wrapper
 #!/bin/bash