<div class="gmail_quote">On Tue, Jul 10, 2012 at 7:08 PM, Richard Purdie <span dir="ltr"><<a href="mailto:richard.purdie@linuxfoundation.org" target="_blank">richard.purdie@linuxfoundation.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex">
<div class="HOEnZb"><div class="h5">On Tue, 2012-07-10 at 18:04 +0300, Andrei Gherzan wrote:<br>
> On Tue, Jul 10, 2012 at 4:33 PM, Richard Purdie<br>
> <<a href="mailto:richard.purdie@linuxfoundation.org">richard.purdie@linuxfoundation.org</a>> wrote:<br>
> On Tue, 2012-07-10 at 14:15 +0300, Andrei Gherzan wrote:<br>
> > Andrei Gherzan (5):<br>
> > fetch2/bzr.py: Use "protocol" parameter and warn user if<br>
> recipe is<br>
> > using "proto"<br>
> > fetch2/git.py: Use "protocol" parameter and warn user if<br>
> recipe is<br>
> > using "proto"<br>
> > fetch2/hg.py: Use "protocol" parameter and warn user if<br>
> recipe is<br>
> > using "proto"<br>
> > fetch2/osc.py: Use "protocol" parameter and warn user if<br>
> recipe is<br>
> > using "proto"<br>
> > fetch2/svn.py: Use "protocol" parameter and warn user if<br>
> recipe is<br>
> > using "proto"<br>
> ><br>
> > bitbake/lib/bb/fetch2/bzr.py | 7 ++++++-<br>
> > bitbake/lib/bb/fetch2/git.py | 4 ++++<br>
> > bitbake/lib/bb/fetch2/hg.py | 7 ++++++-<br>
> > bitbake/lib/bb/fetch2/osc.py | 7 ++++++-<br>
> > bitbake/lib/bb/fetch2/svn.py | 7 ++++++-<br>
> > 5 files changed, 28 insertions(+), 4 deletions(-)<br>
><br>
> How about putting this check into __init__.py and then just<br>
> setting the<br>
> protocol parameter instead if its used? We can then change the<br>
> backends<br>
> just to use procotol right now.<br>
><br>
><br>
> I can add the warning in init but how would i define the local proto<br>
> value to the one defined with parameter "proto"?<br>
<br>
</div></div>In FetchData::__init__(), add<br>
<br>
proto = self.parm.get("proto", None)<br>
if proto and "protocol" not in self.param:<br>
self.parm["protocol"] = proto<br>
<br>
before urldata_init?<br><br></blockquote><div>Yes. It makes sense this way. V2 is on it's way.</div><div><br></div><div>@g </div></div><br>