summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-04 10:55:04 +0100
committerRichard Purdie <richard.purdie@linuxfoundation.org>2021-08-06 06:34:58 +0100
commit7f0f1179eb02c3bb84ffe01f102375dc1186136e (patch)
tree8a125a1404c67467cd8a587df4c3d345f4cf881d /bitbake/lib/bb
parent0b973973f326f3a4c98c099210b93115449a6f61 (diff)
downloadpoky-7f0f1179eb02c3bb84ffe01f102375dc1186136e.tar.gz
bitbake: fetch/tests/toaster: Override conversion fixups
Fix some references that missed during the overrides syntax migration or were incorrect. Thanks to Quentin Schulz <foss@0leil.net> for the patch. (Bitbake rev: 6184cb07dfa44f5f76f1c423533b4547d80b20ab) Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'bitbake/lib/bb')
-rw-r--r--bitbake/lib/bb/fetch2/__init__.py2
-rw-r--r--bitbake/lib/bb/tests/parse.py2
-rw-r--r--bitbake/lib/bb/utils.py2
3 files changed, 3 insertions, 3 deletions
diff --git a/bitbake/lib/bb/fetch2/__init__.py b/bitbake/lib/bb/fetch2/__init__.py
index 60aaf3902a..ad898680ff 100644
--- a/bitbake/lib/bb/fetch2/__init__.py
+++ b/bitbake/lib/bb/fetch2/__init__.py
@@ -1146,7 +1146,7 @@ def srcrev_internal_helper(ud, d, name):
1146 pn = d.getVar("PN") 1146 pn = d.getVar("PN")
1147 attempts = [] 1147 attempts = []
1148 if name != '' and pn: 1148 if name != '' and pn:
1149 attempts.append("SRCREV_%s_pn-%s" % (name, pn)) 1149 attempts.append("SRCREV_%s:pn-%s" % (name, pn))
1150 if name != '': 1150 if name != '':
1151 attempts.append("SRCREV_%s" % name) 1151 attempts.append("SRCREV_%s" % name)
1152 if pn: 1152 if pn:
diff --git a/bitbake/lib/bb/tests/parse.py b/bitbake/lib/bb/tests/parse.py
index 1b6b6d412e..4d17f82edc 100644
--- a/bitbake/lib/bb/tests/parse.py
+++ b/bitbake/lib/bb/tests/parse.py
@@ -99,7 +99,7 @@ exportD = "d"
99 99
100 overridetest = """ 100 overridetest = """
101RRECOMMENDS:${PN} = "a" 101RRECOMMENDS:${PN} = "a"
102RRECOMMENDS:${PN}_libc = "b" 102RRECOMMENDS:${PN}:libc = "b"
103OVERRIDES = "libc:${PN}" 103OVERRIDES = "libc:${PN}"
104PN = "gtk+" 104PN = "gtk+"
105""" 105"""
diff --git a/bitbake/lib/bb/utils.py b/bitbake/lib/bb/utils.py
index 6ba1d2a376..e6e82d1118 100644
--- a/bitbake/lib/bb/utils.py
+++ b/bitbake/lib/bb/utils.py
@@ -1178,7 +1178,7 @@ def edit_metadata(meta_lines, variables, varfunc, match_overrides=False):
1178 variables: a list of variable names to look for. Functions 1178 variables: a list of variable names to look for. Functions
1179 may also be specified, but must be specified with '()' at 1179 may also be specified, but must be specified with '()' at
1180 the end of the name. Note that the function doesn't have 1180 the end of the name. Note that the function doesn't have
1181 any intrinsic understanding of _append, _prepend, _remove, 1181 any intrinsic understanding of :append, :prepend, :remove,
1182 or overrides, so these are considered as part of the name. 1182 or overrides, so these are considered as part of the name.
1183 These values go into a regular expression, so regular 1183 These values go into a regular expression, so regular
1184 expression syntax is allowed. 1184 expression syntax is allowed.