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:
@@ -135,7 +135,10 @@ python base_do_fetch() {
|
||||
raise bb.build.FuncFailed("Malformed URL: %s" % value)
|
||||
|
||||
try:
|
||||
bb.fetch.go(localdata)
|
||||
if bb.fetch.__version__ == "1":
|
||||
bb.fetch.go(localdata)
|
||||
else:
|
||||
bb.fetch.download(localdata)
|
||||
except bb.fetch.MissingParameterError:
|
||||
(type, value, traceback) = sys.exc_info()
|
||||
raise bb.build.FuncFailed("Missing parameters: %s" % value)
|
||||
|
||||
Reference in New Issue
Block a user