mirror of
https://git.yoctoproject.org/poky
synced 2026-04-30 03:32:12 +02:00
lib/oeqa/utils/commands: ensure get_bb_var() works when value contains =
Only split on the first equals character so that values that contain equals characters (such as FAKEROOTENV) can be retrieved. (From OE-Core rev: ff720dd3b77130b2c485d7acad63735fd8751a7d) Signed-off-by: Paul Eggleton <paul.eggleton@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
0899d9af1d
commit
e22c18113b
@@ -141,7 +141,7 @@ def get_bb_var(var, target=None, postconfig=None):
|
||||
lastline = None
|
||||
for line in bbenv.splitlines():
|
||||
if re.search("^(export )?%s=" % var, line):
|
||||
val = line.split('=')[1]
|
||||
val = line.split('=', 1)[1]
|
||||
val = val.strip('\"')
|
||||
break
|
||||
elif re.match("unset %s$" % var, line):
|
||||
|
||||
Reference in New Issue
Block a user