Fix connectivity check for BB_FETCH_PREMIRRORONLY case
PATCH 1/1 Fix connectivity check for BB_FETCH_PREMIRRORONLY case
From: Jan-Simon Möller <[email protected]>
BB_FETCH_PREMIRRORONLY sets BB_NO_NETWORK (implicitly in the fetcher). To avoid the sanity check to fail in an offline environment, use the same override mechanism as in the fetcher.
Signed-off-by Jan-Simon Möller <[email protected]>
--- meta/classes/sanity.bbclass | 3 +++ 1 file changed, 3 insertions(+)
meta/classes/sanity.bbclass +3 -0
@@ -271,6 +271,9 @@ def check_connectivity(d): test_uris = (d.getVar('CONNECTIVITY_CHECK_URIS', True) or "").split() retval = "" + # Check for BB_FETCH_PREMIRRORONLY and adapt BB_NO_NETWORK + if bb.data.getVar("BB_FETCH_PREMIRRORONLY", self.d, True) is not None: + bb.data.setVar("BB_NO_NETWORK", "1", self.d) # Only check connectivity if network enabled and the # CONNECTIVITY_CHECK_URIS are set network_enabled = not d.getVar('BB_NO_NETWORK', True)
Signature · 1 line
2.6.2