summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-16 12:35:35 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-02-16 12:35:35 +0000
commit3ef2d39dbf8a573acfbf633c1d5d7cb3cee18788 (patch)
tree26b3362c7adbb3bfa6f93fd7936637be0c36b46a /bitbake/lib/bb
parent7e4c694c9f53ce9458e052adb918c45db88254dd (diff)
downloadopenembedded-core-3ef2d39dbf8a573acfbf633c1d5d7cb3cee18788.tar.gz
openembedded-core-3ef2d39dbf8a573acfbf633c1d5d7cb3cee18788.tar.bz2
openembedded-core-3ef2d39dbf8a573acfbf633c1d5d7cb3cee18788.tar.xz
openembedded-core-3ef2d39dbf8a573acfbf633c1d5d7cb3cee18788.zip
bitbake/fecth2: Ensure BB_FETCH_PREMIRRORONLY being set as false is handled correctly
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index a5ba166a8..fb8e9e4d0 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -903,6 +903,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]
@@ -925,7 +926,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):