]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commitdiff
Expand PREMIRRORS
authorEnrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Sun, 21 Mar 2010 22:25:25 +0000 (23:25 +0100)
committerChris Larson <clarson@kergoth.com>
Tue, 23 Mar 2010 18:32:52 +0000 (11:32 -0700)
When not expanding PREMIRRORS, the functions fails/does not work correctly
when PREMIRRORS is not a plain string (e.g. contains ${...} or a ${@...}
statements).

Signed-off-by: Enrico Scholz <enrico.scholz@informatik.tu-chemnitz.de>
Signed-off-by: Chris Larson <clarson@kergoth.com>
lib/bb/fetch/__init__.py

index 598a41bf90624480d51ca8ea1349cd203f69ab50..6edb5e5fa3827c71bfa485e493e9a4557977e656 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]