All of lore.kernel.org
 help / color / mirror / Atom feed
From: Richard Purdie <richard.purdie@linuxfoundation.org>
To: Andrei Gherzan <andrei@gherzan.ro>
Cc: bitbake-devel@lists.openembedded.org
Subject: Re: [PATCH 0/5] Modify fetchers to warn user if "param" is used
Date: Tue, 10 Jul 2012 17:08:49 +0100	[thread overview]
Message-ID: <1341936529.1294.5.camel@ted> (raw)
In-Reply-To: <CAK18fxH6HH=HtbFA_xbdgFoUfeeTLtfFJhbY8snUSfBgqetXzQ@mail.gmail.com>

On Tue, 2012-07-10 at 18:04 +0300, Andrei Gherzan wrote:
> On Tue, Jul 10, 2012 at 4:33 PM, Richard Purdie
> <richard.purdie@linuxfoundation.org> wrote:
>         On Tue, 2012-07-10 at 14:15 +0300, Andrei Gherzan wrote:
>         > Andrei Gherzan (5):
>         >   fetch2/bzr.py: Use "protocol" parameter and warn user if
>         recipe is
>         >     using "proto"
>         >   fetch2/git.py: Use "protocol" parameter and warn user if
>         recipe is
>         >     using "proto"
>         >   fetch2/hg.py: Use "protocol" parameter and warn user if
>         recipe is
>         >     using "proto"
>         >   fetch2/osc.py: Use "protocol" parameter and warn user if
>         recipe is
>         >     using "proto"
>         >   fetch2/svn.py: Use "protocol" parameter and warn user if
>         recipe is
>         >     using "proto"
>         >
>         >  bitbake/lib/bb/fetch2/bzr.py |    7 ++++++-
>         >  bitbake/lib/bb/fetch2/git.py |    4 ++++
>         >  bitbake/lib/bb/fetch2/hg.py  |    7 ++++++-
>         >  bitbake/lib/bb/fetch2/osc.py |    7 ++++++-
>         >  bitbake/lib/bb/fetch2/svn.py |    7 ++++++-
>         >  5 files changed, 28 insertions(+), 4 deletions(-)
>         
>         How about putting this check into __init__.py and then just
>         setting the
>         protocol parameter instead if its used? We can then change the
>         backends
>         just to use procotol right now.
>         
>  
> I can add the warning in init but how would i define the local proto
> value to the one defined with parameter "proto"? 

In FetchData::__init__(), add 

        proto = self.parm.get("proto", None)
        if proto and "protocol" not in self.param:
            self.parm["protocol"] = proto

before urldata_init?

Cheers,

Richard




  reply	other threads:[~2012-07-10 16:20 UTC|newest]

Thread overview: 10+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2012-07-10 11:15 [PATCH 0/5] Modify fetchers to warn user if "param" is used Andrei Gherzan
2012-07-10 11:16 ` [PATCH 1/5] fetch2/bzr.py: Use "protocol" parameter and warn user if recipe is using "proto" Andrei Gherzan
2012-07-10 11:16 ` [PATCH 2/5] fetch2/git.py: " Andrei Gherzan
2012-07-10 11:16 ` [PATCH 3/5] fetch2/hg.py: " Andrei Gherzan
2012-07-10 11:16 ` [PATCH 4/5] fetch2/osc.py: " Andrei Gherzan
2012-07-10 11:16 ` [PATCH 5/5] fetch2/svn.py: " Andrei Gherzan
2012-07-10 13:33 ` [PATCH 0/5] Modify fetchers to warn user if "param" is used Richard Purdie
2012-07-10 15:04   ` Andrei Gherzan
2012-07-10 16:08     ` Richard Purdie [this message]
2012-07-10 21:21       ` Andrei Gherzan

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1341936529.1294.5.camel@ted \
    --to=richard.purdie@linuxfoundation.org \
    --cc=andrei@gherzan.ro \
    --cc=bitbake-devel@lists.openembedded.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.