summaryrefslogtreecommitdiffstats
path: root/lib/bb/cooker.py
diff options
context:
space:
mode:
authorMarius Avram <marius.avram@intel.com>2014-03-25 15:02:10 +0200
committerRichard Purdie <richard.purdie@linuxfoundation.org>2014-03-25 13:26:39 +0000
commit30cd1fab6633aaf50ef53eefccc6d69d598eb293 (patch)
treea73133da0d9153cf8e237c2fb3024a54af61ee8d /lib/bb/cooker.py
parent01a07dabb0d0c6a7f8c3c048396cfdf9d756b032 (diff)
downloadopenembedded-core-contrib-30cd1fab6633aaf50ef53eefccc6d69d598eb293.tar.gz
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. Signed-off-by: Marius Avram <marius.avram@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
Diffstat (limited to 'lib/bb/cooker.py')
-rw-r--r--lib/bb/cooker.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/bb/cooker.py b/lib/bb/cooker.py
index 07202e3392..e4cff3a23e 100644
--- a/lib/bb/cooker.py
+++ b/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)