summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/fetch
diff options
context:
space:
mode:
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>2010-03-21 23:25:25 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-03-25 17:17:12 +0000
commit5060280a7ad3b0269b36a9abeff54534f18d5254 (patch)
treefa00d56cb6e70a72bf82cf1a0216108007e540fb /bitbake/lib/bb/fetch
parent5d90d90358ff132a4351db8433ad56b8fa55abf3 (diff)
downloadpoky-5060280a7ad3b0269b36a9abeff54534f18d5254.tar.gz
Expand PREMIRRORS
When not expanding PREMIRRORS, the functions fails/does not work correctly when PREMIRRORS is not a plain string (e.g. contains ${...} or a ${@...} statements). (Bitbake rev: d612d22b073f68b8cf1bb7344e0487820040d80d) Signed-off-by: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de> Signed-off-by: Chris Larson <clarson@kergoth.com> Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/fetch')
-rw-r--r--bitbake/lib/bb/fetch/__init__.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/bitbake/lib/bb/fetch/__init__.py b/bitbake/lib/bb/fetch/__init__.py
index d181eea71b..5616c79ab0 100644
--- a/bitbake/lib/bb/fetch/__init__.py
+++ b/bitbake/lib/bb/fetch/__init__.py
@@ -524,7 +524,7 @@ class FetchData(object):
524 # if user sets localpath for file, use it instead. 524 # if user sets localpath for file, use it instead.
525 self.localpath = self.parm["localpath"] 525 self.localpath = self.parm["localpath"]
526 else: 526 else:
527 premirrors = bb.data.getVar('PREMIRRORS', d) 527 premirrors = bb.data.getVar('PREMIRRORS', d, True)
528 local = "" 528 local = ""
529 if premirrors and self.url: 529 if premirrors and self.url:
530 aurl = self.url.split(";")[0] 530 aurl = self.url.split(";")[0]