From: Enrico Scholz Date: Sun, 21 Mar 2010 22:25:25 +0000 (+0100) Subject: Expand PREMIRRORS X-Git-Tag: 2011-1~6092 X-Git-Url: https://code.ossystems.io/gitweb?a=commitdiff_plain;h=5060280a7ad3b0269b36a9abeff54534f18d5254;p=openembedded-core.git 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 Signed-off-by: Chris Larson Signed-off-by: Richard Purdie --- 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): # if user sets localpath for file, use it instead. self.localpath = self.parm["localpath"] else: - premirrors = bb.data.getVar('PREMIRRORS', d) + premirrors = bb.data.getVar('PREMIRRORS', d, True) local = "" if premirrors and self.url: aurl = self.url.split(";")[0]