bitbake: cooker: delVar in removeConfigurationVar
authorMarius Avram <marius.avram@intel.com>
Tue, 25 Mar 2014 13:02:10 +0000 (15:02 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 25 Mar 2014 13:26:54 +0000 (13:26 +0000)
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>
bitbake/lib/bb/cooker.py

index 07202e3..e4cff3a 100644 (file)
@@ -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)