]> code.ossystems Code Review - openembedded-core.git/commitdiff
bitbake/fetch2: Fix negated if check for BB_FETCH_PREMIRRORONLY
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 9 Feb 2011 01:23:56 +0000 (01:23 +0000)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 9 Feb 2011 01:23:56 +0000 (01:23 +0000)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/fetch2/__init__.py

index 9a4acc2edecfc8dccbe654022bf9578f57adb133..ef9d75f3fef69233f77c1eabfaa3792b89f2ce54 100644 (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):