diff options
Diffstat (limited to 'bitbake')
-rw-r--r-- | bitbake/lib/bb/cache.py | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/bitbake/lib/bb/cache.py b/bitbake/lib/bb/cache.py index bec8ef7757..ab18dd5eaa 100644 --- a/bitbake/lib/bb/cache.py +++ b/bitbake/lib/bb/cache.py | |||
@@ -396,6 +396,15 @@ class Cache(NoCache): | |||
396 | else: | 396 | else: |
397 | logger.debug(1, "Cache file %s not found, building..." % self.cachefile) | 397 | logger.debug(1, "Cache file %s not found, building..." % self.cachefile) |
398 | 398 | ||
399 | # We don't use the symlink, its just for debugging convinience | ||
400 | symlink = os.path.join(self.cachedir, "bb_cache.dat") | ||
401 | if os.path.exists(symlink): | ||
402 | bb.utils.remove(symlink) | ||
403 | try: | ||
404 | os.symlink(os.path.basename(self.cachefile), symlink) | ||
405 | except OSError: | ||
406 | pass | ||
407 | |||
399 | def load_cachefile(self): | 408 | def load_cachefile(self): |
400 | cachesize = 0 | 409 | cachesize = 0 |
401 | previous_progress = 0 | 410 | previous_progress = 0 |