]> git.ipfire.org Git - thirdparty/openwrt.git/commit
sdk: invert logic for GIT_BRANCH and GIT_TAGNAME 18429/head
authorChristian Marangi <ansuelsmth@gmail.com>
Thu, 4 Dec 2025 18:11:17 +0000 (19:11 +0100)
committerChristian Marangi <ansuelsmth@gmail.com>
Thu, 4 Dec 2025 18:25:13 +0000 (19:25 +0100)
commitd0c2c30e5072cc917599a2d8b328a5c6560326c7
tree70ec76d91242df4a0b5ea6cfdcecab0f5eacc786
parent9c23ecf31cf5edd413916edb5c133de1e2b6d04b
sdk: invert logic for GIT_BRANCH and GIT_TAGNAME

There is currently a logic error with generating the base feed string.

In the scenario where the commit of a Tag match the latest commit of a
stable branch, the stable branch have priority over the tag name.

This results in generating SDK that actually target the branch instead
of the specific tag.

To fix this invert the logic and give priority to the tag name.

Fixes: #18583
(cherry picked from commit 289172b00e7193df8a2afa1eee54b43148470698)
[ fix conflict error ]
Signed-off-by: Christian Marangi <ansuelsmth@gmail.com>
target/sdk/Makefile