From: Jan-Simon Möller <dl...@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 <dl...@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 -- _______________________________________________ Openembedded-devel mailing list Openembedded-devel@lists.openembedded.org http://lists.openembedded.org/mailman/listinfo/openembedded-devel