def __init__(self, ctx): self._log = _log self._ctx = ctx self._unzipUtil = UnzipUtil(ctx) self._hashUtil = HashUtil(ctx) self._dcm = DirectoryCacheManager(ctx) self._dwn = self._get_downloader(ctx)(ctx)
def __init__(self, ctx): self._log = logging.getLogger('cache') if ctx.get('USE_EXTERNAL_HASH', False): self._log.debug("Using external hash.") self._hashUtil = ShaHashUtil(ctx) else: self._log.debug("Using hashlib.") self._hashUtil = HashUtil(ctx)
def __init__(self, ctx): if ctx.get('USE_EXTERNAL_HASH', False): self._hashUtil = ShaHashUtil(ctx) else: self._hashUtil = HashUtil(ctx)