aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--lib/bb/cache.py10
1 files changed, 1 insertions, 9 deletions
diff --git a/lib/bb/cache.py b/lib/bb/cache.py
index 936829b83..6dedd4d59 100644
--- a/lib/bb/cache.py
+++ b/lib/bb/cache.py
@@ -814,15 +814,7 @@ class MultiProcessCache(object):
glf = bb.utils.lockfile(self.cachefile + ".lock")
- try:
- with open(self.cachefile, "rb") as f:
- p = pickle.Unpickler(f)
- data, version = p.load()
- except (IOError, EOFError):
- data, version = None, None
-
- if version != self.__class__.CACHE_VERSION:
- data = self.create_cachedata()
+ data = self.cachedata
for f in [y for y in os.listdir(os.path.dirname(self.cachefile)) if y.startswith(os.path.basename(self.cachefile) + '-')]:
f = os.path.join(os.path.dirname(self.cachefile), f)