]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
update.py: check whether branch existed when nocheckout rbt/li_recs
authorRobert Yang <liezhi.yang@windriver.com>
Mon, 9 Jul 2018 03:28:38 +0000 (11:28 +0800)
committerRobert Yang <liezhi.yang@windriver.com>
Mon, 9 Jul 2018 04:06:31 +0000 (12:06 +0800)
commit8be7c6c9057c9b1d461aacfde8459adeddb348d5
tree6baa7ec2da44eef5a31d7d209aa7785ecb1e9865
parent80d1a821c96364c67d8bd0e48cddb7909adcfd71
update.py: check whether branch existed when nocheckout

Fixed:
Assume there is no master branch in hello layer:
$ update.py -l hello -b master
INFO: Skipping update of layer hello - branch master doesn't exist

This is correct since hello layer doesn't have master branch, but when --nocheckout:
$ update.py -l hello -b master  --nocheckout
[snip]
INFO: Sorting layers for branch mater:
WARNING: Cannot find required collections on branch master:
WARNING: hello: LAYERDEPENDS: <snip>

This is incorrect, this patch fixed the problem, now it skips it since the
branch doesn't exists when --nocheckout.

Signed-off-by: Robert Yang <liezhi.yang@windriver.com>
layerindex/update.py
layerindex/update_layer.py