summaryrefslogtreecommitdiffstats
path: root/meta/classes/metadata_scm.bbclass
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2020-12-09 17:16:59 (GMT)
committerRichard Purdie <richard.purdie@linuxfoundation.org>2020-12-09 17:32:51 (GMT)
commitd2f1390c9c2341a1a8ab9f3088b59ed45c6268f5 (patch)
tree9e00453846754edba9500a0069a0a4cb25d870ef /meta/classes/metadata_scm.bbclass
parent9826881036191be6ffba98c9bc8a86d1b852ff41 (diff)
downloadpoky-d2f1390c9c2341a1a8ab9f3088b59ed45c6268f5.tar.gz
metadata_scm: Fix signature handling of METADATA_REVISION and METADATA_BRANCH
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. (From OE-Core rev: 005651dc782859c01f170fb974811b2a13cb2cef) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'meta/classes/metadata_scm.bbclass')
-rw-r--r--meta/classes/metadata_scm.bbclass2
1 files changed, 2 insertions, 0 deletions
diff --git a/meta/classes/metadata_scm.bbclass b/meta/classes/metadata_scm.bbclass
index 58bb4c5..2608a7e 100644
--- a/meta/classes/metadata_scm.bbclass
+++ b/meta/classes/metadata_scm.bbclass
@@ -1,5 +1,7 @@
1METADATA_BRANCH ?= "${@base_detect_branch(d)}" 1METADATA_BRANCH ?= "${@base_detect_branch(d)}"
2METADATA_BRANCH[vardepvalue] = "${METADATA_BRANCH}"
2METADATA_REVISION ?= "${@base_detect_revision(d)}" 3METADATA_REVISION ?= "${@base_detect_revision(d)}"
4METADATA_REVISION[vardepvalue] = "${METADATA_REVISION}"
3 5
4def base_detect_revision(d): 6def base_detect_revision(d):
5 path = base_get_scmbasepath(d) 7 path = base_get_scmbasepath(d)