Skip to content

bitbake-layers: layerindex-fetch: respect --branch for already-configured layers

Osama Abdelkader bitbake-devel 1 version In review

Get series with b4
b4 am [email protected]

Versions newest first

  1. v1 Latest4 patches 5 repliesIn review

Patches in v1 No applies recorded yet

#Subject and filesSizeRepliesApplied
1/4bitbake-layers: layerindex-fetch: Fix undefined stderr variablelib/bblayers/layerindex.py+1 -11 reply
2/4bitbake-layers: layerindex-fetch: Fix branch detection methodlib/bblayers/layerindex.py+4 -24 replies
3/4bitbake-layers: layerindex-fetch: Respect --branch for already-configured layerslib/bblayers/layerindex.py+2 -10 replies
4/4bitbake-layers: layerindex-fetch: Add branch check/switch for cooker layerslib/bblayers/layerindex.py+38 -20 replies

Reviews trailers per patch

1 of 4 patches has a Reviewed-by or Acked-by.

PatchPaul Barker
1/4R-b
2/4
3/4
4/4

Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.

Read the v1 thread

Cover letter [PATCH 0/4] bitbake-layers: layerindex-fetch: respect --branch for already-configured layers

[YOCTO #7852]

This patch series fixes issues with the layerindex-fetch command when --branch is specified for layers that are already configured in bblayers.conf.

The series is organized with bug fixes first (for potential backporting), followed by feature additions:

1. Fix undefined stderr variable (bug fix - may need backporting)
2. Fix branch detection method (bug fix)
3. Respect --branch for already-configured layers (feature)
4. Add branch check/switch for cooker layers (feature)

The main issues addressed:
- Early exit without branch verification when layer is already configured
- Cooker layers being skipped entirely, preventing branch checking
- Fragile branch detection using 'git branch' output parsing
- Undefined variable bug in error handling

Osama Abdelkader (4):
bitbake-layers: layerindex-fetch: Fix undefined stderr variable
bitbake-layers: layerindex-fetch: Fix branch detection method
bitbake-layers: layerindex-fetch: Respect --branch for
already-configured layers
bitbake-layers: layerindex-fetch: Add branch check/switch for cooker
layers

 bitbake/lib/bblayers/layerindex.py | 51 ++++++++++++++++++++++++++----
 1 file changed, 45 insertions(+), 6 deletions(-)
Signature · 1 line
2.43.0