summaryrefslogtreecommitdiffstats
path: root/bitbake/lib/bb/cooker.py
diff options
context:
space:
mode:
Diffstat (limited to 'bitbake/lib/bb/cooker.py')
-rw-r--r--bitbake/lib/bb/cooker.py12
1 files changed, 3 insertions, 9 deletions
diff --git a/bitbake/lib/bb/cooker.py b/bitbake/lib/bb/cooker.py
index 6a6d254d7a..9f8c71ff13 100644
--- a/bitbake/lib/bb/cooker.py
+++ b/bitbake/lib/bb/cooker.py
@@ -475,13 +475,10 @@ class BBCooker:
475 if not fn: 475 if not fn:
476 return False 476 return False
477 477
478 # Load data into the cache for fn 478 # Load data into the cache for fn and parse the loaded cache data
479 self.bb_cache = bb.cache.init(self) 479 self.bb_cache = bb.cache.init(self)
480 self.bb_cache.loadData(fn, self.configuration.data)
481
482 # Parse the loaded cache data
483 self.status = bb.cache.CacheData() 480 self.status = bb.cache.CacheData()
484 self.bb_cache.handle_data(fn, self.status) 481 self.bb_cache.loadData(fn, self.configuration.data, self.status)
485 482
486 # Tweak some variables 483 # Tweak some variables
487 item = self.bb_cache.getVar('PN', fn, True) 484 item = self.bb_cache.getVar('PN', fn, True)
@@ -723,7 +720,7 @@ class BBCooker:
723 720
724 # read a file's metadata 721 # read a file's metadata
725 try: 722 try:
726 fromCache, skip = self.bb_cache.loadData(f, self.configuration.data) 723 fromCache, skip = self.bb_cache.loadData(f, self.configuration.data, self.status)
727 if skip: 724 if skip:
728 skipped += 1 725 skipped += 1
729 bb.msg.debug(2, bb.msg.domain.Collection, "skipping %s" % f) 726 bb.msg.debug(2, bb.msg.domain.Collection, "skipping %s" % f)
@@ -731,7 +728,6 @@ class BBCooker:
731 continue 728 continue
732 elif fromCache: cached += 1 729 elif fromCache: cached += 1
733 else: parsed += 1 730 else: parsed += 1
734 deps = None
735 731
736 # Disabled by RP as was no longer functional 732 # Disabled by RP as was no longer functional
737 # allow metadata files to add items to BBFILES 733 # allow metadata files to add items to BBFILES
@@ -744,8 +740,6 @@ class BBCooker:
744 # aof = os.path.join(os.path.dirname(f),aof) 740 # aof = os.path.join(os.path.dirname(f),aof)
745 # files.append(aof) 741 # files.append(aof)
746 742
747 self.bb_cache.handle_data(f, self.status)
748
749 # now inform the caller 743 # now inform the caller
750 if progressCallback is not None: 744 if progressCallback is not None:
751 progressCallback( i + 1, len( filelist ), f, fromCache ) 745 progressCallback( i + 1, len( filelist ), f, fromCache )