]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
yocto-check-layer: Avoid bug when iterating and autoadding dependencies master-next
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 24 Apr 2021 14:23:54 +0000 (15:23 +0100)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Sat, 24 Apr 2021 14:26:25 +0000 (15:26 +0100)
commit2e63733016f275e48e09edf7ef8f70df5888dfb7
tree4d0bddbf26ed2935cbd09858e449142abb77d1e7
parenteb95a4f30e26690a90ff70e2c2e46195b090527d
yocto-check-layer: Avoid bug when iterating and autoadding dependencies

If iterating a layer with multiple components and auto-adding dependencies
the tests can break since layers are never removed and order isn't guaranteed
to account for that.

Fix this by resetting the layer list back to the original list each time
before auto-adding the dependencies in each case.

This fixes scanning of meta-openembedded in particular where the sublayers
may not be added in order of minimal dependency.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
scripts/yocto-check-layer