diff options
author | Ross Burton <ross@burtonini.com> | 2021-10-25 22:15:54 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2021-10-25 20:54:25 +0100 |
commit | 5af92e6a399ff0543c225551780195fee04db833 (patch) | |
tree | b25297c9a65adc3cc50679e3539b1ed962518959 /bitbake/lib/bb | |
parent | e0548d8d13b8c517ce1ea94b6e4825080465323d (diff) | |
download | poky-5af92e6a399ff0543c225551780195fee04db833.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: 7f3fd1f47f7972756b9b39b6c5ab25084fb4212c)
Signed-off-by: Ross Burton <ross.burton@arm.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 8de9dc02ed6a73b47f2ab10be30d1aed7954bc72)
Signed-off-by: Anuj Mittal <anuj.mittal@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-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 c8e91262a9..dbf8b50e68 100644 --- a/bitbake/lib/bb/fetch2/__init__.py +++ b/bitbake/lib/bb/fetch2/__init__.py | |||
@@ -871,7 +871,7 @@ def runfetchcmd(cmd, d, quiet=False, cleanup=None, log=None, workdir=None): | |||
871 | (output, errors) = bb.process.run(cmd, log=log, shell=True, stderr=subprocess.PIPE, cwd=workdir) | 871 | (output, errors) = bb.process.run(cmd, log=log, shell=True, stderr=subprocess.PIPE, cwd=workdir) |
872 | success = True | 872 | success = True |
873 | except bb.process.NotFoundError as e: | 873 | except bb.process.NotFoundError as e: |
874 | error_message = "Fetch command %s" % (e.command) | 874 | error_message = "Fetch command %s not found" % (e.command) |
875 | except bb.process.ExecutionError as e: | 875 | except bb.process.ExecutionError as e: |
876 | if e.stdout: | 876 | if e.stdout: |
877 | output = "output:\n%s\n%s" % (e.stdout, e.stderr) | 877 | output = "output:\n%s\n%s" % (e.stdout, e.stderr) |