summaryrefslogtreecommitdiff
path: root/bitbake
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-09 01:23:56 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-09 01:23:56 +0000
commit29ed2c6e9a0c3cc57c5bbaf3c53e1cff8586c51c (patch)
tree10bd1e0e82df12de775dc7f0cef92edd917386e2 /bitbake
parent906285ff00d6ffd3fd7713af52250e7c6503edb7 (diff)
downloadopenembedded-core-29ed2c6e9a0c3cc57c5bbaf3c53e1cff8586c51c.tar.gz
openembedded-core-29ed2c6e9a0c3cc57c5bbaf3c53e1cff8586c51c.tar.bz2
openembedded-core-29ed2c6e9a0c3cc57c5bbaf3c53e1cff8586c51c.tar.xz
openembedded-core-29ed2c6e9a0c3cc57c5bbaf3c53e1cff8586c51c.zip
bitbake/fetch2: Fix negated if check for BB_FETCH_PREMIRRORONLY
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 9a4acc2ed..ef9d75f3f 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/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):