From 2bc5a251005a96e816d6a958094b292afa6d1efe Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Wed, 9 Feb 2011 01:23:56 +0000 Subject: bitbake/fetch2: Fix negated if check for BB_FETCH_PREMIRRORONLY (From Poky rev: 29ed2c6e9a0c3cc57c5bbaf3c53e1cff8586c51c) Signed-off-by: Richard Purdie --- lib/bb/fetch2/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/bb/fetch2') diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py index 9a4acc2ed..ef9d75f3f 100644 --- a/lib/bb/fetch2/__init__.py +++ b/lib/bb/fetch2/__init__.py @@ -872,7 +872,7 @@ class Fetch(object): mirrors = mirror_from_string(bb.data.getVar('PREMIRRORS', self.d, True)) localpath = try_mirrors(self.d, ud, mirrors, False) - if bb.data.getVar("BB_FETCH_PREMIRRORONLY", self.d, True) is None: + if bb.data.getVar("BB_FETCH_PREMIRRORONLY", self.d, True) is not None: bb.data.setVar("BB_NO_NETWORK", "1", self.d) if not localpath and m.need_update(u, ud, self.d): -- cgit 1.2.3-korg