oeqa/utils/commands: fix single-character variable matching in get_bb_vars()

(From OE-Core rev: 2f7e4d0636ce1647edf2d82c65b82be0eb2c1db1)

Signed-off-by: Ross Burton <ross.burton@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
Ross Burton
2016-06-29 11:58:18 +01:00
committed by Richard Purdie
parent 8f82db78a9
commit 076a93eed7

View File

@@ -146,8 +146,8 @@ def get_bb_vars(variables=None, target=None, postconfig=None):
"""Get values of multiple bitbake variables"""
bbenv = get_bb_env(target, postconfig=postconfig)
var_re = re.compile(r'^(export )?(?P<var>[a-zA-Z]\w+)="(?P<value>.*)"$')
unset_re = re.compile(r'^unset (?P<var>[a-zA-Z]\w+)$')
var_re = re.compile(r'^(export )?(?P<var>\w+)="(?P<value>.*)"$')
unset_re = re.compile(r'^unset (?P<var>\w+)$')
lastline = None
values = {}
for line in bbenv.splitlines():