bitbake/fetch2: Fix negated if check for BB_FETCH_PREMIRRORONLY

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie committed 2011-02-09 01:23:56 +00:00
1 parent 906285ff00
commit 29ed2c6e9a
1 file changed
+1 -1
+1 -1
View File
@@ -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):