summaryrefslogtreecommitdiffstats
path: root/meta/classes/sstate.bbclass
diff options
context:
space:
mode:
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):
344 # we will build the package 344 # we will build the package
345 try: 345 try:
346 bb.fetch.init([srcuri], localdata) 346 bb.fetch.init([srcuri], localdata)
347 bb.fetch.go(localdata, [srcuri]) 347 if bb.fetch.__version__ == "1":
348 bb.fetch.go(localdata, [srcuri])
349 else:
350 bb.fetch.download(localdata, [srcuri])
348 # Need to optimise this, if using file:// urls, the fetcher just changes the local path 351 # Need to optimise this, if using file:// urls, the fetcher just changes the local path
349 # For now work around by symlinking 352 # For now work around by symlinking
350 localpath = bb.data.expand(bb.fetch.localpath(srcuri, localdata), localdata) 353 localpath = bb.data.expand(bb.fetch.localpath(srcuri, localdata), localdata)