mirror of
https://git.yoctoproject.org/poky
synced 2026-05-30 00:20:08 +00:00
base/sstate.bbclass: Rename fetcher "go" method to "download" when using fetch v2
Signed-off-by: Yu Ke <ke.yu@intel.com>
This commit is contained in:
@@ -344,7 +344,10 @@ def pstaging_fetch(sstatepkg, d):
|
||||
# we will build the package
|
||||
try:
|
||||
bb.fetch.init([srcuri], localdata)
|
||||
bb.fetch.go(localdata, [srcuri])
|
||||
if bb.fetch.__version__ == "1":
|
||||
bb.fetch.go(localdata, [srcuri])
|
||||
else:
|
||||
bb.fetch.download(localdata, [srcuri])
|
||||
# Need to optimise this, if using file:// urls, the fetcher just changes the local path
|
||||
# For now work around by symlinking
|
||||
localpath = bb.data.expand(bb.fetch.localpath(srcuri, localdata), localdata)
|
||||
|
||||
Reference in New Issue
Block a user