bitbake: hob: fix set_extra_setting function
authorMarius Avram <marius.avram@intel.com>
Tue, 25 Mar 2014 13:02:35 +0000 (15:02 +0200)
committerRichard Purdie <richard.purdie@linuxfoundation.org>
Tue, 25 Mar 2014 13:26:55 +0000 (13:26 +0000)
commit0c8f3cac96e09cab8259c1c968461c0f5d846c1d
tree3e0783788702b9ca6a2b9590041d2057b05a3429
parentb88a0cd4155f9a6d86248e80f8b6687824e0fe4d
bitbake: hob: fix set_extra_setting function

The function is used to save additional variables in the configuration file
when the user adds a new (key, value) pair from the Settings->Others. There
was a problem though when the function was trying to retrieve an older
instance of EXTRA_SETTINGS from the configuration file. Sometimes its value
was returned as a dictionary and sometimes a string, which caused a crash when
calling ast.literal_eval(). The reason of the problem must be a change in
bitbake's parsing system. The changes will fix this issues.

While analysing this problem I discovered that the variables were not saved
properly in the configuration file after consecutive changes to Settings->Others
because of the way saveConfigurationVar() from cooker.py works. This patch
will also solve this issue.

[YOCTO #5989]

(Bitbake rev: bdbcd8866104c315fc9da631407d4280433dbfde)

Signed-off-by: Marius Avram <marius.avram@intel.com>
Signed-off-by: Richard Purdie <richard.purdie@linuxfoundation.org>
bitbake/lib/bb/ui/crumbs/hobeventhandler.py