diff options
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() { | |||
135 | raise bb.build.FuncFailed("Malformed URL: %s" % value) | 135 | raise bb.build.FuncFailed("Malformed URL: %s" % value) |
136 | 136 | ||
137 | try: | 137 | try: |
138 | bb.fetch.go(localdata) | 138 | if bb.fetch.__version__ == "1": |
139 | bb.fetch.go(localdata) | ||
140 | else: | ||
141 | bb.fetch.download(localdata) | ||
139 | except bb.fetch.MissingParameterError: | 142 | except bb.fetch.MissingParameterError: |
140 | (type, value, traceback) = sys.exc_info() | 143 | (type, value, traceback) = sys.exc_info() |
141 | raise bb.build.FuncFailed("Missing parameters: %s" % value) | 144 | raise bb.build.FuncFailed("Missing parameters: %s" % value) |