]> code.ossystems Code Review - openembedded-core.git/commit
rootfs.py: catch inner warn message
authorHongxu Jia <hongxu.jia@windriver.com>
Fri, 26 Sep 2014 11:36:01 +0000 (19:36 +0800)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 29 Sep 2014 16:49:11 +0000 (17:49 +0100)
commitf8d725f49f2be4b854f523a5ee3a5c4357e67e30
tree66b233402a85171e3e3c078b474787825a669ddb
parent8e4ab29924c8c5fe2a79e8b0ca41fa45cc8e94a1
rootfs.py: catch inner warn message

Package managements (smart/apt-get/opkg-cl) generate some warn messages
to stdout, and we need to catch them and output by bb.warn.

Here is an example, while invoking smart to attempt install doc packages,
if install failed, it generates warn message to stdout.
...
|warning: Can't install util-linux-doc-2.24.2-r1@i586: Can't
install util-linux-doc-2.24.2-r1@i586: no package provides info
...

The fix catches it and outputs:
...
|WARNING: log_check: There is a warn message in the logfile
|WARNING: log_check: Matched keyword: [warn]
|WARNING: log_check: warning: Can't install util-linux-doc-2.24.2-r1@
i586: Can't install util-linux-doc-2.24.2-r1@i586: no package provides
info
...

Signed-off-by: Hongxu Jia <hongxu.jia@windriver.com>
meta/lib/oe/rootfs.py