bitbake/lib/bb/fetch2: Assign a default name in the names array as empty strings as names cause problems for python

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Richard Purdie
2011-02-03 00:16:23 +00:00
parent 08cd6c1cb9
commit a55d86b405

View File

@@ -550,7 +550,7 @@ class FetchData(object):
self.md5_expected = bb.data.getVarFlag("SRC_URI", self.md5_name, d)
self.sha256_expected = bb.data.getVarFlag("SRC_URI", self.sha256_name, d)
self.names = self.parm.get("name",'').split(',')
self.names = self.parm.get("name",'default').split(',')
for m in methods:
if m.supports(url, self, d):
self.method = m