mirror of
git://git.yoctoproject.org/yocto-autobuilder-helper.git
synced 2025-07-19 12:49:02 +02:00
scripts/yocto-supported-distros: consider any *master* branch to be master
Testing builds often run on branches <someone>/master[-next]. In these cases we are really testing "master", so return that. Instead of exiting with: "Release <future release> does not exist". Signed-off-by: Antonin Godard <antonin.godard@bootlin.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
40e3ac177d
commit
5c6da77b4e
|
@ -160,8 +160,8 @@ def _get_current_core_release() -> str:
|
|||
["bitbake-getvar", "--quiet", "--value", "METADATA_BRANCH"],
|
||||
encoding="utf-8")
|
||||
release = release.strip()
|
||||
if release == "master":
|
||||
return release
|
||||
if "master" in release:
|
||||
return "master"
|
||||
|
||||
release = subprocess.check_output(
|
||||
["bitbake-getvar", "--quiet", "--value", "LAYERSERIES_COMPAT_core"],
|
||||
|
|
Loading…
Reference in New Issue
Block a user