]> code.ossystems Code Review - openembedded-core.git/commit
lib/oe/package: Improve filedeprunner subprocess handling
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 1 Sep 2017 13:08:08 +0000 (14:08 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Fri, 1 Sep 2017 22:58:49 +0000 (23:58 +0100)
commitce11cb449222bc47fea4f6d66ff1cc7cdc529ab9
tree76aa797ad8c8b1ff299c7ed047408f02de2158ed
parent66f7ec30a05639739208bb921b689e94b2c880a3
lib/oe/package: Improve filedeprunner subprocess handling

Currently the exit code of the spawned program isn't checked so it can
fail and the do_package task will continue merrily upon its way.

Use subprocess.check_output() to ensure we check the exit code and
redirect stderr to stdout so if it fails, we see the error output.

We can then drop the existing exception handling as the subprocess
exception gives a much better error.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/package.py