mirror of
https://git.yoctoproject.org/poky
synced 2026-05-31 12:49:46 +00:00
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>
This commit is contained in:
@@ -1146,7 +1146,7 @@ def srcrev_internal_helper(ud, d, name):
|
|||||||
pn = d.getVar("PN")
|
pn = d.getVar("PN")
|
||||||
attempts = []
|
attempts = []
|
||||||
if name != '' and pn:
|
if name != '' and pn:
|
||||||
attempts.append("SRCREV_%s_pn-%s" % (name, pn))
|
attempts.append("SRCREV_%s:pn-%s" % (name, pn))
|
||||||
if name != '':
|
if name != '':
|
||||||
attempts.append("SRCREV_%s" % name)
|
attempts.append("SRCREV_%s" % name)
|
||||||
if pn:
|
if pn:
|
||||||
|
|||||||
@@ -99,7 +99,7 @@ exportD = "d"
|
|||||||
|
|
||||||
overridetest = """
|
overridetest = """
|
||||||
RRECOMMENDS:${PN} = "a"
|
RRECOMMENDS:${PN} = "a"
|
||||||
RRECOMMENDS:${PN}_libc = "b"
|
RRECOMMENDS:${PN}:libc = "b"
|
||||||
OVERRIDES = "libc:${PN}"
|
OVERRIDES = "libc:${PN}"
|
||||||
PN = "gtk+"
|
PN = "gtk+"
|
||||||
"""
|
"""
|
||||||
|
|||||||
@@ -1178,7 +1178,7 @@ def edit_metadata(meta_lines, variables, varfunc, match_overrides=False):
|
|||||||
variables: a list of variable names to look for. Functions
|
variables: a list of variable names to look for. Functions
|
||||||
may also be specified, but must be specified with '()' at
|
may also be specified, but must be specified with '()' at
|
||||||
the end of the name. Note that the function doesn't have
|
the end of the name. Note that the function doesn't have
|
||||||
any intrinsic understanding of _append, _prepend, _remove,
|
any intrinsic understanding of :append, :prepend, :remove,
|
||||||
or overrides, so these are considered as part of the name.
|
or overrides, so these are considered as part of the name.
|
||||||
These values go into a regular expression, so regular
|
These values go into a regular expression, so regular
|
||||||
expression syntax is allowed.
|
expression syntax is allowed.
|
||||||
|
|||||||
@@ -1840,7 +1840,7 @@ if True:
|
|||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
context['image_install:append'] = ProjectVariable.objects.get(project = prj, name = "IMAGE_INSTALL:append").value
|
context['image_install:append'] = ProjectVariable.objects.get(project = prj, name = "IMAGE_INSTALL:append").value
|
||||||
context['image_install:append_defined'] = "1"
|
context['image_install_append_defined'] = "1"
|
||||||
except ProjectVariable.DoesNotExist:
|
except ProjectVariable.DoesNotExist:
|
||||||
pass
|
pass
|
||||||
try:
|
try:
|
||||||
|
|||||||
Reference in New Issue
Block a user