[oe-commits] [bitbake] 01/15: data_smart: fix resetting of reference on variablehistory

git at git.openembedded.org git at git.openembedded.org
Wed Dec 14 09:57:42 UTC 2016


rpurdie pushed a commit to branch master-next
in repository bitbake.

commit febd5534b07edfdef15cedb0578730c582c7373f
Author: Paul Eggleton <paul.eggleton at linux.intel.com>
AuthorDate: Tue Dec 13 20:07:00 2016 +1300

    data_smart: fix resetting of reference on variablehistory
    
    There is no "datasmart" member, only dataroot. This dates back to the
    original implementation of variable history support - it's surprising we
    haven't noticed the issue until now, but I guess it's rare to change a
    copy of a datastore in a manner which using the old reference would
    cause an issue.
    
    Signed-off-by: Paul Eggleton <paul.eggleton at linux.intel.com>
    Signed-off-by: Richard Purdie <richard.purdie at linuxfoundation.org>
---
 lib/bb/data_smart.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/lib/bb/data_smart.py b/lib/bb/data_smart.py
index be43eb9..17768c8 100644
--- a/lib/bb/data_smart.py
+++ b/lib/bb/data_smart.py
@@ -844,7 +844,7 @@ class DataSmart(MutableMapping):
         data = DataSmart()
         data.dict["_data"] = self.dict
         data.varhistory = self.varhistory.copy()
-        data.varhistory.datasmart = data
+        data.varhistory.dataroot = data
         data.inchistory = self.inchistory.copy()
 
         data._tracking = self._tracking

-- 
To stop receiving notification emails like this one, please contact
the administrator of this repository.


More information about the Openembedded-commits mailing list