[bitbake-devel] [PATCH] bb.fetch.git: add a way to avoid git protocol, and force http or https mirrors

Richard Purdie richard.purdie at linuxfoundation.org
Tue Jul 25 22:19:21 UTC 2017


On Tue, 2017-07-25 at 12:30 -0700, Andre McCurdy wrote:
> On Tue, Jul 25, 2017 at 7:43 AM, Mark Hatle <mark.hatle at windriver.com
> > wrote:
> > Won't the following work:
> > 
> > PREMIRRORS_append = " \
> >      git://.*/.* git://HOST/PATH;protocol=https \n \
> >      git://.*/.* git://HOST/PATH;protocol=http \n \
> > "
> Thanks! Yes, that does work. It's the first time I've ever seen HOST
> or PATH being used as mirror replacement patterns. Useful to know.
> 
> Would a patch adding something similar to the default MIRRORS (ie try
> http[s] as a fallback if the git protocol fails) be acceptable in
> upstream oe-core?

Yes, I'd take such a patch. I'd love to have this better documented.

Cheers,

Richard



More information about the bitbake-devel mailing list