<div dir="ltr"><div class="gmail_extra"><br><div class="gmail_quote">On Mon, May 23, 2016 at 2:57 PM, Randy Witt <span dir="ltr"><<a href="mailto:randy.e.witt@linux.intel.com" target="_blank">randy.e.witt@linux.intel.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div id=":2hv" class="a3s aXjCH m154df9fb13975a18">Previously the sstate was all downloaded to the same directory and then<br>
symlinks were added in the directories that pointed to the siginfo and<br>
sstate in the parent directory.<br>
<br>
This change makes it so that now the files are just downloaded to the<br>
correct location without the need for symlinks.<br>
<br>
Signed-off-by: Randy Witt <<a href="mailto:randy.e.witt@linux.intel.com">randy.e.witt@linux.intel.com</a>><br>
---<br>
meta/classes/sstate.<span class="il">bbclass</span> | 12 +++---------<br>
1 file changed, 3 insertions(+), 9 deletions(-)<br>
<br>
diff --git a/meta/classes/sstate.<span class="il">bbclass</span> b/meta/classes/sstate.<span class="il">bbclass</span><br>
index 22ce1ee..6d5411f 100644<br>
--- a/meta/classes/sstate.<span class="il">bbclass</span><br>
+++ b/meta/classes/sstate.<span class="il">bbclass</span><br>
@@ -623,10 +623,10 @@ def pstaging_fetch(sstatefetch, sstatepkg, d):<br>
<br>
# Try a fetch from the sstate mirror, if it fails just return and<br>
# we will build the package<br>
- uris = ['file://{0}'.format(sstatefetch),<br>
- 'file://{0}.siginfo'.format(sstatefetch)]<br>
+ uris = ['file://{0};downloadfilename={1}'.format(sstatefetch, sstatefetch),<br>
+ 'file://{0}.siginfo;downloadfilename={1}.siginfo'.format(sstatefetch, sstatefetch)]<br>
if <span class="il">bb</span>.utils.to_boolean(d.getVar("SSTATE_VERIFY_SIG", True), False):<br>
- uris += ['file://{0}.sig'.format(sstatefetch)]<br>
+ uris += ['file://{0}.sig;downloadfilename={1}.sig'.format(sstatefetch, sstatefetch)]</div></blockquote></div><br>The use of {1} and passing the argument a second time is not needed. This isn't the old style formatting with %s. Just use the existing argument:</div><div class="gmail_extra"><br></div><div class="gmail_extra"> file://{0};downloadfilename={0}'.format(sstatefetch)<br>-- <br><div class="gmail_signature">Christopher Larson<br>clarson at kergoth dot com<br>Founder - BitBake, OpenEmbedded, OpenZaurus<br>Maintainer - Tslib<br>Senior Software Engineer, Mentor Graphics</div>
</div></div>