]> code.ossystems Code Review - openembedded-core.git/commitdiff
Expand PREMIRRORS
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Sun, 21 Mar 2010 22:25:25 +0000 (23:25 +0100)
committerRichard Purdie <rpurdie@linux.intel.com>
Thu, 25 Mar 2010 17:17:12 +0000 (17:17 +0000)
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>
bitbake/lib/bb/fetch/__init__.py

index d181eea71b5c54dd895583d98eaebfda2b75354b..5616c79ab002dc3e49e34352b552d2f39b80c7d4 100644 (file)
@@ -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]