wic: make error message more informative

Included name of the missing program into the error message produced
by exec_native_cmd when program is not found.

Removed mentioning of the host programs as this API is not running
them anymore.

(From OE-Core rev: 7d1599cf6a55d3624d2b90c1f55e14c4df73e570)

Signed-off-by: Ed Bartosh <ed.bartosh@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ed Bartosh 2015-04-07 12:03:06 +03:00 committed by Richard Purdie
parent 024514037d
commit 16d8c895a4
1 changed files with 2 additions and 2 deletions

View File

@ -92,9 +92,9 @@ def exec_native_cmd(cmd_and_args, native_sysroot, catch = 3):
rc, out = __exec_cmd(native_cmd_and_args, True, catch)
if rc == 127: # shell command-not-found
msger.error("A native (host) program required to build the image "
msger.error("A native program %s required to build the image "
"was not found (see details above). Please make sure "
"it's installed and try again.")
"it's installed and try again." % args[0])
return (rc, out)