summaryrefslogtreecommitdiff
path: root/poky/bitbake/lib/bb/parse/parse_py/BBHandler.py
diff options
context:
space:
mode:
authorPatrick Williams <patrick@stwcx.xyz>2021-08-04 00:13:34 +0300
committerPatrick Williams <patrick@stwcx.xyz>2021-08-04 00:14:08 +0300
commit56721c97f25162e10ec94263081138c48adf7544 (patch)
tree0c673b34fd0cf8ced1520d93e50d22c891ed91df /poky/bitbake/lib/bb/parse/parse_py/BBHandler.py
parent5bec55bdd0fda81d0a2d146fa7632abe889ac1a4 (diff)
downloadopenbmc-gatesgarth.tar.xz
subtree updatesgatesgarth
meta-raspberrypi: 3ae135e590..e5e976da0b: Andrei Gherzan (1): layer.conf: Define LAYERDEPENDS Martin Jansa (5): linux-raspberrypi: allow to change the yocto-kernel-cache branch with LINUX_RPI_KMETA_BRANCH linux-raspberrypi-dev: drop protocol=git and add LINUX_RPI_KMETA_BRANCH linux-raspberrypi-dev: use static SRCREV when not selected with PREFERRED_PROVIDER_virtual/kernel layer.conf: Remove older releases from LAYERSERIES_COMPAT python3-adafruit-*: fix branch parameter poky: 6a751048e5..9c1e94752e: Denys Dmytriyenko (1): bitbake: providers: replace newly added logger.warn() with logger.warning() Richard Purdie (2): bitbake: data_smart/parse: Allow ':' characters in variable/function names bitbake: data_smart: Allow colon in variable expansion regex Tomasz Dziendzielski (1): bitbake: BBHandler: Don't classify shell functions that names start with "python*" as python function Signed-off-by: Patrick Williams <patrick@stwcx.xyz> Change-Id: I19fbdb6f4c30a4ad6cd0155495e52fc1a4612585
Diffstat (limited to 'poky/bitbake/lib/bb/parse/parse_py/BBHandler.py')
-rw-r--r--poky/bitbake/lib/bb/parse/parse_py/BBHandler.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/poky/bitbake/lib/bb/parse/parse_py/BBHandler.py b/poky/bitbake/lib/bb/parse/parse_py/BBHandler.py
index 215f940b60..12a78b6502 100644
--- a/poky/bitbake/lib/bb/parse/parse_py/BBHandler.py
+++ b/poky/bitbake/lib/bb/parse/parse_py/BBHandler.py
@@ -22,7 +22,7 @@ from .ConfHandler import include, init
# For compatibility
bb.deprecate_import(__name__, "bb.parse", ["vars_from_file"])
-__func_start_regexp__ = re.compile(r"(((?P<py>python)|(?P<fr>fakeroot))\s*)*(?P<func>[\w\.\-\+\{\}\$]+)?\s*\(\s*\)\s*{$" )
+__func_start_regexp__ = re.compile(r"(((?P<py>python(?=(\s|\()))|(?P<fr>fakeroot(?=\s)))\s*)*(?P<func>[\w\.\-\+\{\}\$:]+)?\s*\(\s*\)\s*{$" )
__inherit_regexp__ = re.compile(r"inherit\s+(.+)" )
__export_func_regexp__ = re.compile(r"EXPORT_FUNCTIONS\s+(.+)" )
__addtask_regexp__ = re.compile(r"addtask\s+(?P<func>\w+)\s*((before\s*(?P<before>((.*(?=after))|(.*))))|(after\s*(?P<after>((.*(?=before))|(.*)))))*")