]> code.ossystems Code Review - openembedded-core.git/commit
wic: Make exec_native_command() fail if a command isn't found
authorTom Zanussi <tom.zanussi@linux.intel.com>
Wed, 19 Feb 2014 20:53:37 +0000 (14:53 -0600)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 20 Feb 2014 14:28:06 +0000 (14:28 +0000)
commit43ac6e3216c5d985d6f90a28e727e397df616267
tree745ae8ff4759f8b44c1fb8a9e60b600730a8652b
parente10c1102d958ffc6b521fb36c6bc51d896503218
wic: Make exec_native_command() fail if a command isn't found

Because exec_cmd() return values can in certain cases be non-zero yet
non-fatal, we don't want to automatically make them fatal (though
there should at least be a warning in such cases, which this patch
also does); non-zero return values are definitely fatal however if
they mean that a native command wasn't found, so have
exec_native_cmd() check the return value of exec_cmd() for that case,
and bail out if so.

[YOCTO #5835]

Signed-off-by: Tom Zanussi <tom.zanussi@linux.intel.com>
Signed-off-by: Saul Wold <sgw@linux.intel.com>
scripts/lib/mic/utils/oe/misc.py