Skip to contentSkip to conversation

Fix connectivity check for BB_FETCH_PREMIRRORONLY case

PATCH New [email protected] 1 participant 1 message Dec 17, 2015

lore
Share & tools
lore
#0 lore raw

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.

---
 meta/classes/sanity.bbclass | 3 +++
 1 file changed, 3 insertions(+)
meta/classes/sanity.bbclass +3 -0
index ad9dda8..62dce92 100644
@@ -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