diff options
Diffstat (limited to 'bitbake/lib/bb/cache.py')
-rw-r--r-- | bitbake/lib/bb/cache.py | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py index fb0f40c602..b99fa99cfb 100644 --- a/bitbake/lib/bb/cache.py +++ b/bitbake/lib/bb/cache.py | |||
@@ -724,7 +724,6 @@ class CacheData(object): | |||
724 | for info in info_array: | 724 | for info in info_array: |
725 | info.add_cacheData(self, fn) | 725 | info.add_cacheData(self, fn) |
726 | 726 | ||
727 | |||
728 | class MultiProcessCache(object): | 727 | class MultiProcessCache(object): |
729 | """ | 728 | """ |
730 | BitBake multi-process cache implementation | 729 | BitBake multi-process cache implementation |
@@ -746,13 +745,18 @@ class MultiProcessCache(object): | |||
746 | self.cachefile = os.path.join(cachedir, self.__class__.cache_file_name) | 745 | self.cachefile = os.path.join(cachedir, self.__class__.cache_file_name) |
747 | logger.debug(1, "Using cache in '%s'", self.cachefile) | 746 | logger.debug(1, "Using cache in '%s'", self.cachefile) |
748 | 747 | ||
748 | glf = bb.utils.lockfile(self.cachefile + ".lock") | ||
749 | |||
749 | try: | 750 | try: |
750 | with open(self.cachefile, "rb") as f: | 751 | with open(self.cachefile, "rb") as f: |
751 | p = pickle.Unpickler(f) | 752 | p = pickle.Unpickler(f) |
752 | data, version = p.load() | 753 | data, version = p.load() |
753 | except: | 754 | except: |
755 | bb.utils.unlockfile(glf) | ||
754 | return | 756 | return |
755 | 757 | ||
758 | bb.utils.unlockfile(glf) | ||
759 | |||
756 | if version != self.__class__.CACHE_VERSION: | 760 | if version != self.__class__.CACHE_VERSION: |
757 | return | 761 | return |
758 | 762 | ||