summaryrefslogtreecommitdiffstats
path: root/lib/bb/data_smart.py
diff options
context:
space:
mode:
authorRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-20 15:26:32 +0000
committerRichard Purdie <richard.purdie@linuxfoundation.org>2013-09-22 12:16:31 +0100
commit37e13b852b33d98fa40f49dc1e815b3bbe912ff0 (patch)
treed20978a1b4d2d36d8dee7a927db72639c4dfeef1 /lib/bb/data_smart.py
parent10757c529fe0b4b9a39740d269831347a3aab4a0 (diff)
downloadbitbake-contrib-37e13b852b33d98fa40f49dc1e815b3bbe912ff0.tar.gz
data_smart: Variable references don't contain newlines, spaces or tabs
The code is happily trying to expand variable names containing newlines, spaces and tabs which are illegal characters in variable names. This patch stops it doing this. This will change dependency checksums since some rather weird dependencies were being attempted to be expanded. Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/data_smart.py')
-rw-r--r--lib/bb/data_smart.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py
index 71b67e458..b6f5b78cd 100644
--- a/lib/bb/data_smart.py
+++ b/lib/bb/data_smart.py
@@ -40,7 +40,7 @@ logger = logging.getLogger("BitBake.Data")
__setvar_keyword__ = ["_append", "_prepend", "_remove"]
__setvar_regexp__ = re.compile('(?P<base>.*?)(?P<keyword>_append|_prepend|_remove)(_(?P<add>.*))?$')
-__expand_var_regexp__ = re.compile(r"\${[^{}@]+}")
+__expand_var_regexp__ = re.compile(r"\${[^{}@\n\t ]+}")
__expand_python_regexp__ = re.compile(r"\${@.+?}")
def infer_caller_details(loginfo, parent = False, varval = True):