diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/cache.py | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py index 6dedd4d595..c7f3b7ab71 100644 --- a/bitbake/lib/bb/cache.py +++ b/bitbake/lib/bb/cache.py | |||
@@ -823,9 +823,11 @@ class MultiProcessCache(object): | |||
823 | p = pickle.Unpickler(fd) | 823 | p = pickle.Unpickler(fd) |
824 | extradata, version = p.load() | 824 | extradata, version = p.load() |
825 | except (IOError, EOFError): | 825 | except (IOError, EOFError): |
826 | extradata, version = self.create_cachedata(), None | 826 | os.unlink(f) |
827 | continue | ||
827 | 828 | ||
828 | if version != self.__class__.CACHE_VERSION: | 829 | if version != self.__class__.CACHE_VERSION: |
830 | os.unlink(f) | ||
829 | continue | 831 | continue |
830 | 832 | ||
831 | self.merge_data(extradata, data) | 833 | self.merge_data(extradata, data) |