diff options
Diffstat (limited to 'bitbake/lib/bb/cache.py')
-rw-r--r-- | bitbake/lib/bb/cache.py | 10 |
1 files changed, 2 insertions, 8 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py index 4848b4105f..33734df940 100644 --- a/bitbake/lib/bb/cache.py +++ b/bitbake/lib/bb/cache.py | |||
@@ -64,10 +64,7 @@ class Cache: | |||
64 | self.cachefile = os.path.join(self.cachedir, "bb_cache.dat") | 64 | self.cachefile = os.path.join(self.cachedir, "bb_cache.dat") |
65 | 65 | ||
66 | bb.msg.debug(1, bb.msg.domain.Cache, "Using cache in '%s'" % self.cachedir) | 66 | bb.msg.debug(1, bb.msg.domain.Cache, "Using cache in '%s'" % self.cachedir) |
67 | try: | 67 | bb.mkdirhier(self.cachedir) |
68 | os.stat( self.cachedir ) | ||
69 | except OSError: | ||
70 | bb.mkdirhier( self.cachedir ) | ||
71 | 68 | ||
72 | # If any of configuration.data's dependencies are newer than the | 69 | # If any of configuration.data's dependencies are newer than the |
73 | # cache there isn't even any point in loading it... | 70 | # cache there isn't even any point in loading it... |
@@ -92,11 +89,8 @@ class Cache: | |||
92 | bb.msg.note(1, bb.msg.domain.Cache, "Invalid cache found, rebuilding...") | 89 | bb.msg.note(1, bb.msg.domain.Cache, "Invalid cache found, rebuilding...") |
93 | self.depends_cache = {} | 90 | self.depends_cache = {} |
94 | else: | 91 | else: |
95 | try: | 92 | if os.path.isfile(self.cachefile): |
96 | os.stat( self.cachefile ) | ||
97 | bb.msg.note(1, bb.msg.domain.Cache, "Out of date cache found, rebuilding...") | 93 | bb.msg.note(1, bb.msg.domain.Cache, "Out of date cache found, rebuilding...") |
98 | except OSError: | ||
99 | pass | ||
100 | 94 | ||
101 | def getVar(self, var, fn, exp = 0): | 95 | def getVar(self, var, fn, exp = 0): |
102 | """ | 96 | """ |