Lines Matching refs:cachefile
82 cachefile = "bb_cache.dat" variable in CoreRecipeInfo
375 def getCacheFile(self, cachefile): argument
376 return getCacheFile(self.cachedir, cachefile, self.mc, self.data_hash)
384 self.cachefile = self.getCacheFile("bb_cache.dat")
392 cachefile = self.getCacheFile(cache_class.cachefile)
393 cache_exists = os.path.exists(cachefile)
394 self.logger.debug2("Checking if %s exists: %r", cachefile, cache_exists)
399 elif os.path.isfile(self.cachefile):
402 self.logger.debug("Cache file %s not found, building..." % self.cachefile)
413 os.symlink(os.path.basename(self.cachefile), symlink)
425 cachefile = self.getCacheFile(cache_class.cachefile)
427 with open(cachefile, "rb") as cachefile:
428 cachesize += os.fstat(cachefile.fileno()).st_size
438 cachefile = self.getCacheFile(cache_class.cachefile)
439 self.logger.debug('Loading cache file: %s' % cachefile)
440 with open(cachefile, "rb") as cachefile:
441 pickled = pickle.Unpickler(cachefile)
459 while cachefile:
477 current_progress = cachefile.tell() + previous_progress
478 progress(cachefile.tell() + previous_progress)
688 cachefile = self.getCacheFile(cache_class.cachefile)
689 self.logger.debug2("Writing %s", cachefile)
690 with open(cachefile, "wb") as f:
704 def mtime(cachefile): argument
705 return bb.parse.cached_mtime_noerror(cachefile)
853 self.cachefile = None
863 self.cachefile = os.path.join(cachedir,
865 logger.debug("Using cache in '%s'", self.cachefile)
867 glf = bb.utils.lockfile(self.cachefile + ".lock")
870 with open(self.cachefile, "rb") as f:
889 if not self.cachefile:
892 glf = bb.utils.lockfile(self.cachefile + ".lock", shared=True)
897 lf = bb.utils.lockfile(self.cachefile + ".lock." + str(i), retry=False)
898 if not lf or os.path.exists(self.cachefile + "-" + str(i)):
905 with open(self.cachefile + "-" + str(i), "wb") as f:
919 if not self.cachefile:
922 glf = bb.utils.lockfile(self.cachefile + ".lock")
926 …in [y for y in os.listdir(os.path.dirname(self.cachefile)) if y.startswith(os.path.basename(self.c…
927 f = os.path.join(os.path.dirname(self.cachefile), f)
943 with open(self.cachefile, "wb") as f:
958 self.cachefile = None
969 self.cachefile = os.path.join(cachedir,
971 logger.debug("Using cache in '%s'", self.cachefile)
973 glf = bb.utils.lockfile(self.cachefile + ".lock")
976 with open(self.cachefile, "rb") as f:
991 if not self.cachefile:
994 glf = bb.utils.lockfile(self.cachefile + ".lock")
996 with open(self.cachefile, "wb") as f: