[bitbake-devel] [PATCH v2 2/2] gitsm.py: support BB_NO_NETWORK during do_unpack

Mikko.Rapeli at bmw.de Mikko.Rapeli at bmw.de
Wed Sep 6 15:47:34 UTC 2017


On Wed, Sep 06, 2017 at 08:24:14AM -0700, Christopher Larson wrote:
> On Wed, Sep 6, 2017 at 5:33 AM, Mikko Rapeli <mikko.rapeli at bmw.de> wrote:
> 
> > 'git submodule update --init -recursive' will clone remote repositories
> > if local tree does not have the referenced commits. Add --no-fetch
> > to git submodule update if BB_NO_NETWORK is defined and only local
> > download caches should be used.
> >
> > Signed-off-by: Mikko Rapeli <mikko.rapeli at bmw.de>
> >
> 
> If we’re unpacking, there’s no reason to be contacting anything remote
> regardless of the value of BB_NO_NETWORK. We should be passing —no-fetch
> all the time. We also need to be running a submodule sync to update any
> changes urls in the submodule remotes, but there are other issues to be
> resolved beyond that.

Yes, I thought about this but decided not to change current behavior.
Should have mentioned that in the commit message.

I can send a new version where --no-fetch is the default but it might break
in some setups, especially when the DL_DIR cache is not used for submodules...

-Mikko


More information about the bitbake-devel mailing list