Patchwork [2/5] package_deb.bbclass: put the stderr into log.do_xxx-attemptonly.xxx

login
register
mail settings
Submitter Dexuan Cui
Date Sept. 6, 2011, 1:08 p.m.
Message ID <f042dae0c5066ac798eede73f6f7c113c22269f4.1315313790.git.dexuan.cui@intel.com>
Download mbox | patch
Permalink /patch/11053/
State New, archived
Headers show

Comments

Dexuan Cui - Sept. 6, 2011, 1:08 p.m.
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 |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch

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