]> git.ipfire.org Git - thirdparty/openembedded/openembedded-core-contrib.git/commit
meta/lib/oe/recipeutils.py: Handle multi-repo recipes for upgrade check
authorUwe Kleine-König <u.kleine-koenig@baylibre.com>
Tue, 23 Sep 2025 15:47:02 +0000 (17:47 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Thu, 25 Sep 2025 10:09:45 +0000 (11:09 +0100)
commitddf00d6aee955878c070327ee8d751fdb6099444
tree393fe40bbec401e6b5f82d0831f341ec7642b0c1
parent86d09ec9cdbcea6e076ebac6e1243f9e20fb4378
meta/lib/oe/recipeutils.py: Handle multi-repo recipes for upgrade check

For a recipe that uses more than one git repo there isn't a single
SRCREV variable. For example for linux-yocto there is SRCREV_machine and
SRCREV_meta and rd.getVar("SRCREV") yields "INVALID".

Luckily bb.fetch2 already handles all the details and exposes the
currently used revision in ud. So just use that.

Signed-off-by: Uwe Kleine-König <u.kleine-koenig@baylibre.com>
Signed-off-by: Mathieu Dubois-Briand <mathieu.dubois-briand@bootlin.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
meta/lib/oe/recipeutils.py