diff options
-rw-r--r-- | bitbake/lib/bb/cache.py | 10 |
1 files changed, 1 insertions, 9 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py index 936829b838..6dedd4d595 100644 --- a/bitbake/lib/bb/cache.py +++ b/bitbake/lib/bb/cache.py | |||
@@ -814,15 +814,7 @@ class MultiProcessCache(object): | |||
814 | 814 | ||
815 | glf = bb.utils.lockfile(self.cachefile + ".lock") | 815 | glf = bb.utils.lockfile(self.cachefile + ".lock") |
816 | 816 | ||
817 | try: | 817 | data = self.cachedata |
818 | with open(self.cachefile, "rb") as f: | ||
819 | p = pickle.Unpickler(f) | ||
820 | data, version = p.load() | ||
821 | except (IOError, EOFError): | ||
822 | data, version = None, None | ||
823 | |||
824 | if version != self.__class__.CACHE_VERSION: | ||
825 | data = self.create_cachedata() | ||
826 | 818 | ||
827 | for f in [y for y in os.listdir(os.path.dirname(self.cachefile)) if y.startswith(os.path.basename(self.cachefile) + '-')]: | 819 | for f in [y for y in os.listdir(os.path.dirname(self.cachefile)) if y.startswith(os.path.basename(self.cachefile) + '-')]: |
828 | f = os.path.join(os.path.dirname(self.cachefile), f) | 820 | f = os.path.join(os.path.dirname(self.cachefile), f) |