[gnome-continuous-yocto/gnomeostree-3.28-rocko: 1148/8267] oeqa/utils/commands: fix single-character variable matching in get_bb_vars()



commit 076a93eed73772c1f56eec2e56d3ca3b77b64f82
Author: Ross Burton <ross burton intel com>
Date:   Wed Jun 29 11:58:18 2016 +0100

    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>

 meta/lib/oeqa/utils/commands.py |    4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/meta/lib/oeqa/utils/commands.py b/meta/lib/oeqa/utils/commands.py
index eddcf1a..418643a 100644
--- a/meta/lib/oeqa/utils/commands.py
+++ b/meta/lib/oeqa/utils/commands.py
@@ -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():


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]