summaryrefslogtreecommitdiffstats
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)
downloadpoky-43595fabbe0c9084a3878645aef8e3e1c2f79452.tar.gz
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:
38 import pickle 38 import pickle
39 bb.msg.note(1, bb.msg.domain.Cache, "Importing cPickle failed. Falling back to a very slow implementation.") 39 bb.msg.note(1, bb.msg.domain.Cache, "Importing cPickle failed. Falling back to a very slow implementation.")
40 40
41__cache_version__ = "131" 41__cache_version__ = "132"
42 42
43class Cache: 43class Cache:
44 """ 44 """
@@ -377,6 +377,10 @@ class Cache:
377 377
378 cacheData.stamp[file_name] = self.getVar('STAMP', file_name, True) 378 cacheData.stamp[file_name] = self.getVar('STAMP', file_name, True)
379 379
380 cacheData.tasks[file_name] = self.getVar('__BBTASKS', file_name, True)
381 for t in cacheData.tasks[file_name]:
382 cacheData.basetaskhash[file_name + "." + t] = self.getVar("BB_BASEHASH_task-%s" % t, file_name, True)
383
380 # build FileName to PackageName lookup table 384 # build FileName to PackageName lookup table
381 cacheData.pkg_fn[file_name] = pn 385 cacheData.pkg_fn[file_name] = pn
382 cacheData.pkg_pepvpr[file_name] = (pe, pv, pr) 386 cacheData.pkg_pepvpr[file_name] = (pe, pv, pr)
@@ -539,6 +543,8 @@ class CacheData:
539 self.task_deps = {} 543 self.task_deps = {}
540 self.stamp = {} 544 self.stamp = {}
541 self.preferred = {} 545 self.preferred = {}
546 self.tasks = {}
547 self.basetaskhash = {}
542 548
543 """ 549 """
544 Indirect Cache variables 550 Indirect Cache variables