summaryrefslogtreecommitdiffstats
path: root/meta/classes/sstate.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-28 11:49:12 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2015-04-29 10:58:54 +0100
commit591e6a6dcb5710b7f60bd83ca1890b118186aa4c (patch)
tree35bcf4dcf29150833ed21eac4a604b9374b844a5 /meta/classes/sstate.bbclass
parent0007b5c5967536131246970e7d55602e52a87e95 (diff)
downloadpoky-591e6a6dcb5710b7f60bd83ca1890b118186aa4c.tar.gz
sstate: Use SSTATE_DIR for FILESPATH
FILESPATH was only being overridden in one fetch location, it should be equally handled in both. Also use SSTATE_DIR as FILESPATH so that mirror urls which do remapping can search the local SSTATE_DIR for other paths. Also ensure that MIRRORS is removed in both locations, previously it was only unset in one but both codepaths should be consistent. (From OE-Core rev: ab6bebddbdefec323e284b6438d9c57b3d8a2cc3) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/sstate.bbclass')
-rw-r--r--meta/classes/sstate.bbclass4
1 files changed, 3 insertions, 1 deletions
diff --git a/meta/classes/sstate.bbclass b/meta/classes/sstate.bbclass
index 2f0632af89..a710305086 100644
--- a/meta/classes/sstate.bbclass
+++ b/meta/classes/sstate.bbclass
@@ -569,7 +569,7 @@ def pstaging_fetch(sstatefetch, sstatepkg, d):
569 bb.utils.mkdirhier(dldir) 569 bb.utils.mkdirhier(dldir)
570 570
571 localdata.delVar('MIRRORS') 571 localdata.delVar('MIRRORS')
572 localdata.delVar('FILESPATH') 572 localdata.setVar('FILESPATH', dldir)
573 localdata.setVar('DL_DIR', dldir) 573 localdata.setVar('DL_DIR', dldir)
574 localdata.setVar('PREMIRRORS', mirrors) 574 localdata.setVar('PREMIRRORS', mirrors)
575 575
@@ -700,6 +700,8 @@ def sstate_checkhashes(sq_fn, sq_task, sq_hash, sq_hashfn, d):
700 bb.data.update_data(localdata) 700 bb.data.update_data(localdata)
701 701
702 dldir = localdata.expand("${SSTATE_DIR}") 702 dldir = localdata.expand("${SSTATE_DIR}")
703 localdata.delVar('MIRRORS')
704 localdata.setVar('FILESPATH', dldir)
703 localdata.setVar('DL_DIR', dldir) 705 localdata.setVar('DL_DIR', dldir)
704 localdata.setVar('PREMIRRORS', mirrors) 706 localdata.setVar('PREMIRRORS', mirrors)
705 707