summaryrefslogtreecommitdiff
path: root/bitbake/lib/bb/cache.py
diff options
context:
space:
mode:
authorRichard Purdie <rpurdie@linux.intel.com>2010-08-31 14:49:43 +0100
committerRichard Purdie <rpurdie@linux.intel.com>2010-09-03 16:08:32 +0100
commit43595fabbe0c9084a3878645aef8e3e1c2f79452 (patch)
tree674fdee5617661909e824840f4028224addced13 /bitbake/lib/bb/cache.py
parent453d8f49ac0340ecef6429fe539d0e0febf5071a (diff)
downloadopenembedded-core-43595fabbe0c9084a3878645aef8e3e1c2f79452.tar.gz
openembedded-core-43595fabbe0c9084a3878645aef8e3e1c2f79452.tar.bz2
openembedded-core-43595fabbe0c9084a3878645aef8e3e1c2f79452.zip
bitbake: Implement signatures
Includes functionality to find out what changes between two different singature data dumps. Signed-off-by: Richard Purdie <rpurdie@linux.intel.com>
Diffstat (limited to 'bitbake/lib/bb/cache.py')
-rw-r--r--bitbake/lib/bb/cache.py8
1 files changed, 7 insertions, 1 deletions
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