[bitbake-devel] [PATCH 2/2] utils: make edit_metadata_file() handle VARIABLE +=

Paul Eggleton paul.eggleton at linux.intel.com
Mon Dec 29 11:14:27 UTC 2014


This is a little crude as the usage basically ignores that you're doing
an append operation, but for a lot of cases it will be sufficient.

Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
---
 lib/bb/utils.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/utils.py b/lib/bb/utils.py
index ef8cd4d..90090b2 100644
--- a/lib/bb/utils.py
+++ b/lib/bb/utils.py
@@ -923,7 +923,7 @@ def edit_metadata_file(meta_file, variables, func):
     """
     var_res = {}
     for var in variables:
-        var_res[var] = re.compile(r'^%s[ \t]*[?=]+' % var)
+        var_res[var] = re.compile(r'^%s[ \t]*[?+]*=' % var)
 
     updated = False
     varset_start = ''
-- 
1.9.3




More information about the bitbake-devel mailing list