summaryrefslogtreecommitdiff
path: root/meta/classes/sstate.bbclass
diff options
context:
space:
mode:
authorYu Ke <ke.yu@intel.com>2011-01-18 23:17:50 +0800
committerRichard Purdie <richard.purdie@linuxfoundation.org>2011-01-25 12:25:47 +0000
commite2ac26e7b1a1d058915d489cf3e0985484e1f69e (patch)
treeb31a3e9a4206790ddd0c8c8402e7759e4f16127a /meta/classes/sstate.bbclass
parente05918937c515dff845fcb4c9e94f8ecbea8c957 (diff)
downloadopenembedded-core-e2ac26e7b1a1d058915d489cf3e0985484e1f69e.tar.gz
openembedded-core-e2ac26e7b1a1d058915d489cf3e0985484e1f69e.tar.bz2
openembedded-core-e2ac26e7b1a1d058915d489cf3e0985484e1f69e.zip
base/sstate.bbclass: Rename fetcher "go" method to "download" when using fetch v2
Signed-off-by: Yu Ke <ke.yu@intel.com>
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r--meta/classes/sstate.bbclass5
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 807e8e39aa..dbe0e46b54 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -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)