[bitbake-devel] [PATCH 1/2] cooker: delVar in removeConfigurationVar
Marius Avram
marius.avram at intel.com
Tue Mar 25 13:02:10 UTC 2014
When a variable was removed from a configuration file it was not
removed from memory. This also had the effect of not allowing
to set a new value for the same variable with saveConfigurationVar.
Signed-off-by: Marius Avram <marius.avram at intel.com>
---
bitbake/lib/bb/cooker.py | 2 ++
1 file changed, 2 insertions(+)
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 07202e3..e4cff3a 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -334,6 +334,8 @@ class BBCooker:
contents[begin_line] = "\n"
#remove var from history
self.data.varhistory.del_var_history(var, conf_file, line)
+ #remove variable
+ self.data.delVar(var)
with open(conf_file, 'w') as f:
f.writelines(contents)
--
1.7.9.5
More information about the bitbake-devel
mailing list