[yocto] Details on Bug #963 kernel tarball corruption.

Richard Purdie richard.purdie at linuxfoundation.org
Thu Jul 7 17:08:29 PDT 2011


On Thu, 2011-07-07 at 16:57 -0700, Darren Hart wrote:
> On 07/07/2011 02:16 PM, Richard Purdie wrote:
> > On Thu, 2011-07-07 at 13:34 -0700, Flanagan, Elizabeth wrote:
> > diff --git a/bitbake/lib/bb/fetch2/git.py b/bitbake/lib/bb/fetch2/git.py
> > index f3bc793..7954f66 100644
> > --- a/bitbake/lib/bb/fetch2/git.py
> > +++ b/bitbake/lib/bb/fetch2/git.py
> > @@ -170,7 +170,7 @@ class Git(FetchMethod):
> >  
> >          # If the repo still doesn't exist, fallback to cloning it
> >          if not os.path.exists(ud.clonedir):
> > -            clone_cmd = "%s clone --bare %s://%s%s%s %s" % \
> > +            clone_cmd = "%s clone --bare --mirror %s://%s%s%s %s" % \
> 
> 
> --mirror implies --bare, so:
> -            clone_cmd = "%s clone --bare %s://%s%s%s %s" % \
> +            clone_cmd = "%s clone --mirror %s://%s%s%s %s" % \
> 
> should be adequate.

Right, I left it in as it makes it clearer to anyone looking at the
command that we're really sure we want a bare clone...

Cheers,

Richard




More information about the yocto mailing list