]> code.ossystems Code Review - openembedded-core.git/commitdiff
metadata_scm: Fix signature handling of METADATA_REVISION and METADATA_BRANCH
authorRichard Purdie <richard.purdie@linuxfoundation.org>
Wed, 9 Dec 2020 17:16:59 +0000 (17:16 +0000)
committerSteve Sakoman <steve@sakoman.com>
Fri, 11 Dec 2020 16:16:48 +0000 (06:16 -1000)
We're not interested in the dependencies of these functions and what
those functions look like, we're interested in the value the variable has.

Force the hashed value to be the actual value from the function. This
means using METADATA_REVISION in DISTRO_VERSION for example now
correctly rebuilds when it changes value.

Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
(cherry picked from commit 005651dc782859c01f170fb974811b2a13cb2cef)
Signed-off-by: Steve Sakoman <steve@sakoman.com>
meta/classes/metadata_scm.bbclass

index 58bb4c555a22469f20a7abcf4c9c38f08afe2442..2608a7ef7b8d8bf4b7aa644290d5e72424ff5316 100644 (file)
@@ -1,5 +1,7 @@
 METADATA_BRANCH ?= "${@base_detect_branch(d)}"
+METADATA_BRANCH[vardepvalue] = "${METADATA_BRANCH}"
 METADATA_REVISION ?= "${@base_detect_revision(d)}"
+METADATA_REVISION[vardepvalue] = "${METADATA_REVISION}"
 
 def base_detect_revision(d):
     path = base_get_scmbasepath(d)