]> code.ossystems Code Review - openembedded-core.git/commit
Rework the persist_data API
authorChris Larson <chris_larson@mentor.com>
Wed, 22 Sep 2010 01:11:54 +0000 (18:11 -0700)
committerRichard Purdie <rpurdie@linux.intel.com>
Wed, 5 Jan 2011 00:58:23 +0000 (00:58 +0000)
commit2671bb4197a06403e1cd3cedb0f6452046660d0a
tree317cba67a6a6d686598d7cb1aec735802f3e04da
parent3069c0b2588c9e88a4fa2fd4d37356410d364410
Rework the persist_data API

Rather than having to run .addDomain() and then .getValue(domain, key),
.setValue(domain, key), etc, now it just works as mappings.

As an example:

    setValue(domain, key) -> persist[domain][key] = value

It also arranges things so we can construct objects of this type using any
arbitrary filename/path for the sqlite3 database, rather than being so
tightly bound to the metadata.

(Bitbake rev: d9e8b8af308ae871efdc8ef0782be30af8c1f894)

Signed-off-by: Chris Larson <chris_larson@mentor.com>
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
bitbake/lib/bb/persist_data.py