mirror of
https://git.yoctoproject.org/poky
synced 2026-04-30 03:32:12 +02:00
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 <marius.avram@intel.com> Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
This commit is contained in:
committed by
Richard Purdie
parent
843e3ecf9e
commit
22af8031cd
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user