mirror of
https://git.yoctoproject.org/poky
synced 2026-05-04 22:39:49 +02:00
sanity.bbclass:check_connectivity(): print more error messages
This can help fix the problem when the error happens.
Now the error message is:
Fetcher failure for URL: 'https://www.example.com/'. URL https://www.example.com/ doesn't work.
Please ensure your host's network is configured correctly,
or set BB_NO_NETWORK = "1" to disable network access if
all required sources are on local disk.
(From OE-Core rev: 0b31a03c59efea3a8742762772e39dcbd6f8ed25)
Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
ddfc3afced
commit
d755f0721a
@@ -380,7 +380,10 @@ def check_connectivity(d):
|
||||
# pointed to a support mechanism.
|
||||
msg = data.getVar('CONNECTIVITY_CHECK_MSG', True) or ""
|
||||
if len(msg) == 0:
|
||||
msg = "%s. Please ensure your network is configured correctly.\n" % err
|
||||
msg = "%s.\n" % err
|
||||
msg += " Please ensure your host's network is configured correctly,\n"
|
||||
msg += " or set BB_NO_NETWORK = \"1\" to disable network access if\n"
|
||||
msg += " all required sources are on local disk.\n"
|
||||
retval = msg
|
||||
|
||||
return retval
|
||||
|
||||
Reference in New Issue
Block a user