[OE-core] [PATCH] Fix connectivity check for BB_FETCH_PREMIRRORONLY case
dl9pf at gmx.de
dl9pf at gmx.de
Thu Dec 17 21:34:19 UTC 2015
From: Jan-Simon Möller <dl9pf at gmx.de>
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 <dl9pf at gmx.de>
---
meta/classes/sanity.bbclass | 3 +++
1 file changed, 3 insertions(+)
diff --git a/meta/classes/sanity.bbclass b/meta/classes/sanity.bbclass
index ad9dda8..62dce92 100644
--- a/meta/classes/sanity.bbclass
+++ b/meta/classes/sanity.bbclass
@@ -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)
--
2.6.2
More information about the Openembedded-core
mailing list