Skip to contentSkip to conversation

cooker: delVar in removeConfigurationVar

PATCH New Marius Avram 1 participant 1 message Mar 25, 2014

lore
Share & tools
lore
#0 lore raw

PATCH 1/2 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/lib/bb/cooker.py |    2 ++
 1 file changed, 2 insertions(+)
bitbake/lib/bb/cooker.py +2 -0
index 07202e3..e4cff3a 100644
@@ -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)
Signature · 1 line
1.7.9.5