Openembedded Bitbake Development
 help / color / mirror / Atom feed
* docs on git fetcher don't match actual code
@ 2011-08-19 17:11 Robert P. J. Day
  2011-08-20 15:23 ` Holger Hans Peter Freyther
                   ` (2 more replies)
  0 siblings, 3 replies; 4+ messages in thread
From: Robert P. J. Day @ 2011-08-19 17:11 UTC (permalink / raw)
  To: BitBake developer list

[-- Attachment #1: Type: TEXT/PLAIN, Size: 1339 bytes --]


  perusing the bitbake user manual earlier and the section on the git
fetch module doesn't sync up with the code.  from the user manual:

"The parameters are tag, protocol and scmdata. tag is a Git tag, the
default is ‘master’. protocol is the Git protocol to use and defaults
to ‘rsync’."

  however, in fetch2/git.py, one reads:

- protocol
   The method to use to access the repository. Common options are
   "git", "http", "file" and "rsync". The default is "git"


  and, finally, further down, there's the actual check for a valid
protocol:

    if not ud.proto in ('git', 'file', 'ssh', 'http', 'https'):
        raise bb.fetch2.ParameterError("Invalid protocol type", ud.url)

which says nothing about "rsync" but lists "https" as a valid protocol
that's not mentioned higher up.  someone way higher up the food chain
is welcome to decide what should be clarified here.

rday

-- 

========================================================================
Robert P. J. Day                                 Ottawa, Ontario, CANADA
                        http://crashcourse.ca

Twitter:                                       http://twitter.com/rpjday
LinkedIn:                               http://ca.linkedin.com/in/rpjday
========================================================================

^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: docs on git fetcher don't match actual code
  2011-08-19 17:11 docs on git fetcher don't match actual code Robert P. J. Day
@ 2011-08-20 15:23 ` Holger Hans Peter Freyther
  2011-08-20 15:27 ` Holger Freyther
  2011-08-21 17:40 ` Richard Purdie
  2 siblings, 0 replies; 4+ messages in thread
From: Holger Hans Peter Freyther @ 2011-08-20 15:23 UTC (permalink / raw)
  To: bitbake-devel

On 08/19/2011 07:11 PM, Robert P. J. Day wrote:
> 

> 
> which says nothing about "rsync" but lists "https" as a valid protocol
> that's not mentioned higher up.  someone way higher up the food chain
> is welcome to decide what should be clarified here.

Hi Robert,

I would update the manual to mention that 'git' is the default and remove
rsync from it. The reasoning is that rsync is mostly historic and there is no
good reason to use it.

holger



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: docs on git fetcher don't match actual code
  2011-08-19 17:11 docs on git fetcher don't match actual code Robert P. J. Day
  2011-08-20 15:23 ` Holger Hans Peter Freyther
@ 2011-08-20 15:27 ` Holger Freyther
  2011-08-21 17:40 ` Richard Purdie
  2 siblings, 0 replies; 4+ messages in thread
From: Holger Freyther @ 2011-08-20 15:27 UTC (permalink / raw)
  To: bitbake-devel

On 08/19/2011 07:11 PM, Robert P. J. Day wrote:
> 

> 
> which says nothing about "rsync" but lists "https" as a valid protocol
> that's not mentioned higher up.  someone way higher up the food chain
> is welcome to decide what should be clarified here.

Hi Robert,

I would update the manual to mention that 'git' is the default and remove
rsync from it. The reasoning is that rsync is mostly historic and there is no
good reason to use it.

holger



^ permalink raw reply	[flat|nested] 4+ messages in thread

* Re: docs on git fetcher don't match actual code
  2011-08-19 17:11 docs on git fetcher don't match actual code Robert P. J. Day
  2011-08-20 15:23 ` Holger Hans Peter Freyther
  2011-08-20 15:27 ` Holger Freyther
@ 2011-08-21 17:40 ` Richard Purdie
  2 siblings, 0 replies; 4+ messages in thread
From: Richard Purdie @ 2011-08-21 17:40 UTC (permalink / raw)
  To: Robert P. J. Day; +Cc: BitBake developer list

On Fri, 2011-08-19 at 13:11 -0400, Robert P. J. Day wrote:
> perusing the bitbake user manual earlier and the section on the git
> fetch module doesn't sync up with the code.  from the user manual:
> 
> "The parameters are tag, protocol and scmdata. tag is a Git tag, the
> default is ‘master’. protocol is the Git protocol to use and defaults
> to ‘rsync’."
> 
>   however, in fetch2/git.py, one reads:
> 
> - protocol
>    The method to use to access the repository. Common options are
>    "git", "http", "file" and "rsync". The default is "git"
> 
> 
>   and, finally, further down, there's the actual check for a valid
> protocol:
> 
>     if not ud.proto in ('git', 'file', 'ssh', 'http', 'https'):
>         raise bb.fetch2.ParameterError("Invalid protocol type", ud.url)
> 
> which says nothing about "rsync" but lists "https" as a valid protocol
> that's not mentioned higher up.  someone way higher up the food chain
> is welcome to decide what should be clarified here.

Thanks, I've pushed a couple of commits which should clarify the
situation.

Cheers,

Richard




^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2011-08-21 21:50 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2011-08-19 17:11 docs on git fetcher don't match actual code Robert P. J. Day
2011-08-20 15:23 ` Holger Hans Peter Freyther
2011-08-20 15:27 ` Holger Freyther
2011-08-21 17:40 ` Richard Purdie

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox