]> code.ossystems Code Review - openembedded-core.git/commit
rootfs.py: Unify _log_check_warn() and _log_check_error()
authorPeter Kjellerstedt <peter.kjellerstedt@axis.com>
Wed, 18 May 2016 22:28:18 +0000 (00:28 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 19 May 2016 21:31:34 +0000 (22:31 +0100)
commitdd73dcac36b80b3b886a2e9bf575b91c4f60d039
tree629776cb7739f5b271a7efa7a3766a8dc3b1b972
parentd6e3477749b1d09d40a773e0ac857a24d5851984
rootfs.py: Unify _log_check_warn() and _log_check_error()

Use a common _log_check_common() function (based on the old
_log_check_warn() function) to implement the logic for both
_log_check_warn() and _log_check_error().

The main benefit of this is that now all error messages will be
reported again, not just the first one found. Additionally the output
will now look the same for both error and warning messages.

This removes the context for the error messages. However, since there
was no indication in the output that some of the lines were context,
they were more confusing than helping.

Signed-off-by: Peter Kjellerstedt <peter.kjellerstedt@axis.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/rootfs.py