python base_do_unpack() {
from glob import glob
- srcurldata = bb.fetch.init(d.getVar("SRC_URI", True).split(), d, True)
+ src_uri = d.getVar("SRC_URI", True)
+ if not src_uri:
+ return
+ srcurldata = bb.fetch.init(src_uri.split(), d, True)
filespath = d.getVar("FILESPATH", True).split(":")
- for url, urldata in srcurldata.iteritems():
+ for url in src_uri.split():
+ urldata = srcurldata[url]
if urldata.type == "file" and "*" in urldata.path:
# The fetch code doesn't know how to handle globs, so
# we need to handle the local bits ourselves