<div dir="ltr"><div dir="ltr">On Wed, May 22, 2019 at 9:50 AM Paul Barker <<a href="mailto:paul@betafive.co.uk">paul@betafive.co.uk</a>> wrote:<br></div><div class="gmail_quote"><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">On Tue, 21 May 2019, at 11:23, Belisko Marek wrote:<br>
> On Tue, May 21, 2019 at 12:14 PM Alexander Kanavin <br>
> <<a href="mailto:alex.kanavin@gmail.com" target="_blank">alex.kanavin@gmail.com</a>> wrote:<br>
> > You can write a class which sets the template for SRC_URI and then a<br>
> >Â series of recipes that inherit the class, and define the variable that<br>
> >Â would turn the template into the actual URI.<br>
> OK I think it make sense. So parsing of config file will be done in <br>
> class and then class will be used in recipes to set correct SRU_URI.<br>
> Do you have any idea what is wrong with actual code I posted? Why it is <br>
> doing some strange things? Thanks.<br>
<br>
You're setting the SRC_URI value only in the do_fetch task. It's needed in at least the do_unpack task as well and possibly other tasks.<br>
<br>
You could look at setting this in an anonymous python function instead if you really need to parse a config file.<br></blockquote><div>Yes I was using anonymous python function before but then when project was unpacked the SRCPV + SRCREV was somehow not updated.</div><div>I'll try to look more on it and debug. Thanks.</div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">
<br>
-- <br>
Paul Barker<br>
Managing Director & Principal Engineer<br>
Beta Five Ltd<br>
</blockquote></div><br clear="all"><div>BR,</div><div><br></div><div>marek</div>-- <br><div dir="ltr" class="gmail_signature">as simple and primitive as possible<br>-------------------------------------------------<br>Marek Belisko - OPEN-NANDRA<br>Freelance Developer<br><br>Ruska Nova Ves 219 | Presov, 08005 Slovak Republic<br>Tel: +421 915 052 184<br>skype: marekwhite<br>twitter: #opennandra<br>web: <a href="http://open-nandra.com" target="_blank">http://open-nandra.com</a></div></div>