summaryrefslogtreecommitdiffstats
path: root/meta
diff options
context:
space:
mode:
authorRobert Yang <liezhi.yang@windriver.com>2016-11-14 06:34:05 -0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2016-11-23 11:10:13 +0000
commitd755f0721a17313e27653a6406e6f874180355d6 (patch)
treed89c79be57b487b617932e1a5acf2ceed6473ca3 /meta
parentddfc3afced01490748bbbe61baca8f61b5f85844 (diff)
downloadpoky-d755f0721a17313e27653a6406e6f874180355d6.tar.gz
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>
Diffstat (limited to 'meta')
-rw-r--r--meta/classes/sanity.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index 9db3f1d5f3..01bf5f780e 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -380,7 +380,10 @@ def check_connectivity(d):
380 # pointed to a support mechanism. 380 # pointed to a support mechanism.
381 msg = data.getVar('CONNECTIVITY_CHECK_MSG', True) or "" 381 msg = data.getVar('CONNECTIVITY_CHECK_MSG', True) or ""
382 if len(msg) == 0: 382 if len(msg) == 0:
383 msg = "%s. Please ensure your network is configured correctly.\n" % err 383 msg = "%s.\n" % err
384 msg += " Please ensure your host's network is configured correctly,\n"
385 msg += " or set BB_NO_NETWORK = \"1\" to disable network access if\n"
386 msg += " all required sources are on local disk.\n"
384 retval = msg 387 retval = msg
385 388
386 return retval 389 return retval