mirror of
https://git.yoctoproject.org/poky
synced 2026-04-29 00:32:14 +02:00
wic/engine.py: improve error message when required tools are missing
Instead of showing that command 'None' was found, show the name of actual command that wasn't found on the host machine or at the native sysroot path provided by user. (From OE-Core rev: 3157ebb131e01e74689b1f87a35278350f315e7d) (From OE-Core rev: 73697d9e44e92b8e7c0cdd46339981f5633f09af) Signed-off-by: Anuj Mittal <anuj.mittal@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org> Signed-off-by: Armin Kuster <akuster808@gmail.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
41733717da
commit
4b871ee7a7
@@ -284,8 +284,8 @@ class Disk:
|
||||
aname = "_%s" % name
|
||||
if aname not in self.__dict__:
|
||||
setattr(self, aname, find_executable(name, self.paths))
|
||||
if aname not in self.__dict__:
|
||||
raise WicError("Can't find executable {}".format(name))
|
||||
if aname not in self.__dict__ or self.__dict__[aname] is None:
|
||||
raise WicError("Can't find executable '{}'".format(name))
|
||||
return self.__dict__[aname]
|
||||
return self.__dict__[name]
|
||||
|
||||
|
||||
Reference in New Issue
Block a user