diff options
author | Yu Ke <ke.yu@intel.com> | 2011-01-18 23:17:50 +0800 |
---|---|---|
committer | Richard Purdie <richard.purdie@linuxfoundation.org> | 2011-01-25 12:25:47 +0000 |
commit | e2ac26e7b1a1d058915d489cf3e0985484e1f69e (patch) | |
tree | b31a3e9a4206790ddd0c8c8402e7759e4f16127a /meta/classes/base.bbclass | |
parent | e05918937c515dff845fcb4c9e94f8ecbea8c957 (diff) | |
download | openembedded-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/base.bbclass')
-rw-r--r-- | meta/classes/base.bbclass | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/meta/classes/base.bbclass b/meta/classes/base.bbclass index ec55d4aa72..42291557b0 100644 --- a/meta/classes/base.bbclass +++ b/meta/classes/base.bbclass @@ -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) |