diff options
author | Anuj Mittal <anuj.mittal@intel.com> | 2018-06-01 16:45:05 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2018-06-04 15:14:43 +0100 |
commit | 3157ebb131e01e74689b1f87a35278350f315e7d (patch) | |
tree | 5a88650bde7d3de444bfb159117939d1e5561289 /scripts | |
parent | e8fb42f3a54e8b8d68ae216a48534fa745ea99f1 (diff) | |
download | openembedded-core-contrib-3157ebb131e01e74689b1f87a35278350f315e7d.tar.gz |
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.
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'scripts')
-rw-r--r-- | scripts/lib/wic/engine.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/scripts/lib/wic/engine.py b/scripts/lib/wic/engine.py index edcfab39ef5..94992365dfb 100644 --- a/scripts/lib/wic/engine.py +++ b/scripts/lib/wic/engine.py @@ -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] |