]> code.ossystems Code Review - openembedded-core.git/commitdiff
package_deb.bbclass: put the stderr into log.do_xxx-attemptonly.xxx
authorDexuan Cui <dexuan.cui@intel.com>
Tue, 6 Sep 2011 09:14:52 +0000 (17:14 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 7 Sep 2011 21:28:34 +0000 (22:28 +0100)
Currently the stderr msgs go into log.do_rootfs and can cause a fatal failure
in "log_check rootfs".

However, the err msg could be spurious since we *only attempt* to install the
the packages, which may not exist actually. E.g., without this patch, we can
get a fatal ERROR due to
E: Couldn't find package task-core-tools-dev.

Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
meta/classes/package_deb.bbclass

index 48aa2327360ebfa5905298ce6aa2205ed39862cc..87e20da843967afdbbe7fdad1f1e7c45d583a313 100644 (file)
@@ -176,7 +176,7 @@ package_install_internal_deb () {
        rm -f ${WORKDIR}/temp/log.do_${task}-attemptonly.${PID}
        if [ ! -z "${package_attemptonly}" ]; then
                for i in ${package_attemptonly}; do
-                       apt-get install $i --force-yes --allow-unauthenticated >> ${WORKDIR}/temp/log.do_${task}-attemptonly.${PID} || true
+                       apt-get install $i --force-yes --allow-unauthenticated >> ${WORKDIR}/temp/log.do_${task}-attemptonly.${PID} 2>&1 || true
                done
        fi