mirror of
https://git.yoctoproject.org/poky
synced 2026-01-29 21:08:42 +01:00
recipetool: create: fix SRCBRANCH not being passed to params
When explicitly passing a branch using --srcbranch in 'devtool add' or 'recipetool create', the branch name is not included in the params of bb.fetch2.encodeurl and default 'master' branch is used instead. (From OE-Core rev: 0424df825f1e509faf6cd44403c0736bb91b57c3) Signed-off-by: Tuomas Salokanto <tuomas.salokanto@gmail.com> Signed-off-by: Ross Burton <ross.burton@arm.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
cc912a18b6
commit
72148cb9bf
@@ -460,6 +460,7 @@ def create_recipe(args):
|
||||
logger.error('branch= parameter and -B/--srcbranch option cannot both be specified - use one or the other')
|
||||
sys.exit(1)
|
||||
srcbranch = args.srcbranch
|
||||
params['branch'] = srcbranch
|
||||
nobranch = params.get('nobranch')
|
||||
if nobranch and srcbranch:
|
||||
logger.error('nobranch= cannot be used if you specify a branch')
|
||||
|
||||
Reference in New Issue
Block a user