From 43595fabbe0c9084a3878645aef8e3e1c2f79452 Mon Sep 17 00:00:00 2001 From: Richard Purdie Date: Tue, 31 Aug 2010 14:49:43 +0100 Subject: bitbake: Implement signatures Includes functionality to find out what changes between two different singature data dumps. Signed-off-by: Richard Purdie --- bitbake/lib/bb/cache.py | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) (limited to 'bitbake/lib/bb/cache.py') diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py index 21cbad915e..646fdecbeb 100644 --- a/bitbake/lib/bb/cache.py +++ b/bitbake/lib/bb/cache.py @@ -38,7 +38,7 @@ except ImportError: import pickle bb.msg.note(1, bb.msg.domain.Cache, "Importing cPickle failed. Falling back to a very slow implementation.") -__cache_version__ = "131" +__cache_version__ = "132" class Cache: """ @@ -377,6 +377,10 @@ class Cache: cacheData.stamp[file_name] = self.getVar('STAMP', file_name, True) + cacheData.tasks[file_name] = self.getVar('__BBTASKS', file_name, True) + for t in cacheData.tasks[file_name]: + cacheData.basetaskhash[file_name + "." + t] = self.getVar("BB_BASEHASH_task-%s" % t, file_name, True) + # build FileName to PackageName lookup table cacheData.pkg_fn[file_name] = pn cacheData.pkg_pepvpr[file_name] = (pe, pv, pr) @@ -539,6 +543,8 @@ class CacheData: self.task_deps = {} self.stamp = {} self.preferred = {} + self.tasks = {} + self.basetaskhash = {} """ Indirect Cache variables -- cgit v1.2.3