diff options
author | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-16 12:35:35 +0000 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-02-21 13:36:45 +0000 |
commit | ff3ac7274fd1e07ab6ebf25e259572ffcd2da2e9 (patch) | |
tree | 3ed4dd6cad806381ff1f692643dabd399987827d | |
parent | 6348657c5b73200cda5949aa13a9bd5e147b2df1 (diff) | |
download | bitbake-ff3ac7274fd1e07ab6ebf25e259572ffcd2da2e9.tar.gz |
bitbake/fecth2: Ensure BB_FETCH_PREMIRRORONLY being set as false is handled correctly
(From Poky rev: 3ef2d39dbf8a573acfbf633c1d5d7cb3cee18788)
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
-rw-r--r-- | lib/bb/fetch2/__init__.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/bb/fetch2/__init__.py b/lib/bb/fetch2/__init__.py index 787a960c0..9e09c53b7 100644 --- a/lib/bb/fetch2/__init__.py +++ b/lib/bb/fetch2/__init__.py @@ -900,6 +900,7 @@ class Fetch(object): urls = self.urls network = bb.data.getVar("BB_NO_NETWORK", self.d, True) + premirroronly = (bb.data.getVar("BB_FETCH_PREMIRRORONLY", self.d, True) == "1") for u in urls: ud = self.ud[u] @@ -922,7 +923,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 not None: + if premirroronly: bb.data.setVar("BB_NO_NETWORK", "1", self.d) if not localpath and m.need_update(u, ud, self.d): |