From 22af8031cdb3090330c5c4c965855963e24a3ba2 Mon Sep 17 00:00:00 2001 From: Marius Avram Date: Tue, 25 Mar 2014 15:02:10 +0200 Subject: bitbake: cooker: delVar in removeConfigurationVar 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. (Bitbake rev: 30cd1fab6633aaf50ef53eefccc6d69d598eb293) Signed-off-by: Marius Avram Signed-off-by: Richard Purdie --- bitbake/lib/bb/cooker.py | 2 ++ 1 file changed, 2 insertions(+) (limited to 'bitbake/lib/bb/cooker.py') diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py index 07202e3392..e4cff3a23e 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) -- cgit v1.2.3-54-g00ecf