summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch2/__init__.py
diff options
context:
space:
mode:
authorViswanath Kraleti <quic_vkraleti@quicinc.com>2024-03-08 05:33:56 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2024-03-22 16:26:45 +0000
commit3a97792820935392a1adfddc3abbef7d741f6b98 (patch)
treef5406ceb2838352caca4a7004dcf359b71cdf377 /bitbake/lib/bb/fetch2/__init__.py
parente20ee877ed41eaf186a108e11ea8fba42490a0e8 (diff)
downloadpoky-3a97792820935392a1adfddc3abbef7d741f6b98.tar.gz
bitbake: fetch2: Fix misleading "no output" msg
When a command is run with a non-null log, errors are only output to the log and are not returned in the exception. In that case direct users to that logfile instead of telling the command had no output. (Bitbake rev: 944fe0a77932a5559e01ae6035c4bffa5185ea6a) Signed-off-by: Viswanath Kraleti <quic_vkraleti@quicinc.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb/fetch2/__init__.py')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py5
1 files changed, 4 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 37fed16e4e..5bf2c4b8cf 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -943,7 +943,10 @@ def runfetchcmd(cmd, d, quiet=False, cleanup=None, log=None, workdir=None):
943 elif e.stderr: 943 elif e.stderr:
944 output = "output:\n%s" % e.stderr 944 output = "output:\n%s" % e.stderr
945 else: 945 else:
946 output = "no output" 946 if log:
947 output = "see logfile for output"
948 else:
949 output = "no output"
947 error_message = "Fetch command %s failed with exit code %s, %s" % (e.command, e.exitcode, output) 950 error_message = "Fetch command %s failed with exit code %s, %s" % (e.command, e.exitcode, output)
948 except bb.process.CmdError as e: 951 except bb.process.CmdError as e:
949 error_message = "Fetch command %s could not be run:\n%s" % (e.command, e.msg) 952 error_message = "Fetch command %s could not be run:\n%s" % (e.command, e.msg)