aboutsummaryrefslogtreecommitdiffstats
path: root/meta/classes/package_deb.bbclass
diff options
context:
space:
mode:
authorDexuan Cui <dexuan.cui@intel.com>2011-09-06 17:14:52 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-09-07 22:28:34 +0100
commit5f00bda874ccaebdb00714b5cb5227462d43f8fb (patch)
treeeb4814be772962787482eea78fcbfbe67a4bc5ae /meta/classes/package_deb.bbclass
parenta47ceddd6eb91e7564e6e48ddbb5d490f3d2767d (diff)
downloadopenembedded-core-5f00bda874ccaebdb00714b5cb5227462d43f8fb.tar.gz
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. Signed-off-by: Dexuan Cui <dexuan.cui@intel.com>
Diffstat (limited to 'meta/classes/package_deb.bbclass')
-rw-r--r--meta/classes/package_deb.bbclass2
1 files changed, 1 insertions, 1 deletions
diff --git a/meta/classes/package_deb.bbclass b/meta/classes/package_deb.bbclass
index 48aa232736..87e20da843 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