diff options
author | Ross Burton <ross@burtonini.com> | 2021-10-05 15:50:00 +0100 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-08 16:45:05 +0100 |
commit | 07996f492b1f77a94f855b17c7846496350b258a (patch) | |
tree | 739a81ba994b95ae2a81b7416b8a46118e06035f /bitbake | |
parent | c1e7369af1d55019d52ec1f752e6bc93cf27c0e3 (diff) | |
download | poky-07996f492b1f77a94f855b17c7846496350b258a.tar.gz |
bitbake: fetch2: clarify the command-no-found error message
If runfetchcmd() fails with bb.process.NotFoundError, the message output
is simply "Fetch command" which doesn't really explain what the problem
is.
Add "not found" to clarify what happened.
(Bitbake rev: 8de9dc02ed6a73b47f2ab10be30d1aed7954bc72)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/fetch2/__init__.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py index ee29d89b18..259b2637a6 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -884,7 +884,7 @@ def runfetchcmd(cmd, d, quiet=False, cleanup=None, log=None, workdir=None): | |||
884 | (output, errors) = bb.process.run(cmd, log=log, shell=True, stderr=subprocess.PIPE, cwd=workdir) | 884 | (output, errors) = bb.process.run(cmd, log=log, shell=True, stderr=subprocess.PIPE, cwd=workdir) |
885 | success = True | 885 | success = True |
886 | except bb.process.NotFoundError as e: | 886 | except bb.process.NotFoundError as e: |
887 | error_message = "Fetch command %s" % (e.command) | 887 | error_message = "Fetch command %s not found" % (e.command) |
888 | except bb.process.ExecutionError as e: | 888 | except bb.process.ExecutionError as e: |
889 | if e.stdout: | 889 | if e.stdout: |
890 | output = "output:\n%s\n%s" % (e.stdout, e.stderr) | 890 | output = "output:\n%s\n%s" % (e.stdout, e.stderr) |