mirror of
git://git.yoctoproject.org/poky
synced 2026-08-14 04:29:56 +00:00
oeqa/utils/commands.py: Fix get_bb_vars() when called without arguments
Commit 9d55e9d489cd78be592fb9b4d6484f9060c62fdd broke calling get_bb_vars() when called without arguments. This fix this issue. (From OE-Core rev: 91f856426c7523e1ebdf6d6f93f5fa7e509d6e49) Signed-off-by: Mariano Lopez <mariano.lopez@linux.intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
parent
66adb6bdf7
commit
a92d27acd8
@ -149,7 +149,8 @@ def get_bb_vars(variables=None, target=None, postconfig=None):
|
||||
"""Get values of multiple bitbake variables"""
|
||||
bbenv = get_bb_env(target, postconfig=postconfig)
|
||||
|
||||
variables = variables.copy()
|
||||
if variables is not None:
|
||||
variables = variables.copy()
|
||||
var_re = re.compile(r'^(export )?(?P<var>\w+)="(?P<value>.*)"$')
|
||||
unset_re = re.compile(r'^unset (?P<var>\w+)$')
|
||||
lastline = None
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user