mbox series

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

Message ID 20251212190806.32476-1-osama.abdelkader@gmail.com
Headers show
Series bitbake-layers: layerindex-fetch: respect --branch for already-configured layers | expand

Message

Osama Abdelkader Dec. 12, 2025, 7:08 p.m. UTC
[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(-)