diff options
author | Richard Purdie <rpurdie@linux.intel.com> | 2009-07-30 21:24:31 +0100 |
---|---|---|
committer | Richard Purdie <rpurdie@linux.intel.com> | 2009-07-30 21:24:31 +0100 |
commit | 433c2d2318dc32843fb1f92487977d2152b72818 (patch) | |
tree | 5abf3379d4b43e9e74b2a3001428ab8c7d71e068 /bitbake-dev/lib/bb/fetch | |
parent | ef9c095334632b8576667800d52b842f1cbf52ea (diff) | |
download | openembedded-core-433c2d2318dc32843fb1f92487977d2152b72818.tar.gz openembedded-core-433c2d2318dc32843fb1f92487977d2152b72818.tar.bz2 openembedded-core-433c2d2318dc32843fb1f92487977d2152b72818.tar.xz openembedded-core-433c2d2318dc32843fb1f92487977d2152b72818.zip |
bitbake: Remove persist_data domain renaming code as it appears to expose sqlite bugs and data consistency issues
Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake-dev/lib/bb/fetch')
-rw-r--r-- | bitbake-dev/lib/bb/fetch/__init__.py | 10 |
1 files changed, 7 insertions, 3 deletions
diff --git a/bitbake-dev/lib/bb/fetch/__init__.py b/bitbake-dev/lib/bb/fetch/__init__.py index 8ddcd3870..cd7e59a55 100644 --- a/bitbake-dev/lib/bb/fetch/__init__.py +++ b/bitbake-dev/lib/bb/fetch/__init__.py @@ -78,6 +78,7 @@ def uri_replace(uri, uri_find, uri_replace, d): methods = [] urldata_cache = {} +saved_headrevs = {} def fetcher_init(d): """ @@ -91,12 +92,15 @@ def fetcher_init(d): bb.msg.debug(1, bb.msg.domain.Fetcher, "Keeping SRCREV cache due to cache policy of: %s" % srcrev_policy) elif srcrev_policy == "clear": bb.msg.debug(1, bb.msg.domain.Fetcher, "Clearing SRCREV cache due to cache policy of: %s" % srcrev_policy) - pd.renameDomain("BB_URI_HEADREVS", "BB_URI_HEADREVS_PREVIOUS") + try: + bb.fetch.saved_headrevs = pd.getKeyValues("BB_URI_HEADREVS") + except: + pass + pd.delDomain("BB_URI_HEADREVS") else: bb.msg.fatal(bb.msg.domain.Fetcher, "Invalid SRCREV cache policy of: %s" % srcrev_policy) # Make sure our domains exist pd.addDomain("BB_URI_HEADREVS") - pd.addDomain("BB_URI_HEADREVS_PREVIOUS") pd.addDomain("BB_URI_LOCALCOUNT") def fetcher_compare_revisons(d): @@ -107,7 +111,7 @@ def fetcher_compare_revisons(d): pd = persist_data.PersistData(d) data = pd.getKeyValues("BB_URI_HEADREVS") - data2 = pd.getKeyValues("BB_URI_HEADREVS_PREVIOUS") + data2 = bb.fetch.saved_headrevs changed = False for key in data: |