]> code.ossystems Code Review - openembedded-core.git/commit
recipetool: create: being able to set branch when revision is provided
authorChang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
Mon, 21 Aug 2017 05:39:41 +0000 (17:39 +1200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Mon, 21 Aug 2017 07:30:32 +0000 (08:30 +0100)
commitecca596b75cfda2f798a0bdde75f4f774e23a95b
treead20dfceeb1dbb6e9c25c0158fc56d499c78edc6
parent091cee2bdc2378a3425a4ef8558d03e6f9c021ff
recipetool: create: being able to set branch when revision is provided

This change is to improve the buildability of the recipe created by
recipetool and devtool.

When recipetool create is run on a git URL and a revision specified
that is not on master, and "branch=" isn't already in the URL, then
we should get the correct branch and append the branch to the URL.

If the revision was found on multiple branches and 'master' is not
in the list, we will display error to inform user to provide a
correct branch and exit.

[YOCTO #11389]

Signed-off-by: Chang Rebecca Swee Fun <rebecca.swee.fun.chang@intel.com>
Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/lib/recipetool/create.py