[OE-core] [PATCH V2] sanity: add function to check for git config user

Stephano Cetola stephano.cetola at linux.intel.com
Mon Oct 3 16:09:32 UTC 2016


On 10/03, Burton, Ross wrote:
> On 3 October 2016 at 01:43, Stephano Cetola <stephano.cetola at linux.intel.com
> > wrote:
> 
> > +# If the user hasn't set up their name/email, set some defaults
> > +check_git_config() {
> > +       if [ -z "$1" ]; then
> > +               name="OE"
> > +       else
> > +               name="$1"
> > +       fi
> > +       if ! git config user.email > /dev/null ; then
> > +               git config --local user.email "${name}@${DISTRO}"
> > +       fi
> > +       if ! git config user.name > /dev/null ; then
> > +               git config --local user.name "${name}"
> > +       fi
> > +}
> >
> 
> Instead of embedding this into sanity.bbclass, could it just go into
> meta/lib/oe/ somewhere?
> 
> Ross


Yeah, I saw /meta/lib/oe/patch when Paul mentioned it. It looks like
things should be moving in this direction log-term anyhow. I could
move this to patch.py for now, and then submit a bug to move
functionality as well, if that's the direction we'd want to go.

Cheers,
Stephano



More information about the Openembedded-core mailing list