From f6bebe501b4d67832b7141edd8eeb0cab5dcbfc6 Mon Sep 17 00:00:00 2001 From: Dexuan Cui Date: Tue, 6 Sep 2011 17:14:52 +0800 Subject: package_deb.bbclass: put the stderr into log.do_xxx-attemptonly.xxx 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. (From OE-Core rev: 5f00bda874ccaebdb00714b5cb5227462d43f8fb) Signed-off-by: Dexuan Cui Signed-off-by: Richard Purdie --- meta/classes/package_deb.bbclass | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass index 48aa232..87e20da 100644 --- a/meta/classes/package_deb.bbclass +++ b/meta/classes/package_deb.bbclass @@ -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 -- cgit v1.1