def __init__(self, mapper, package_mapper): self.package_mapper = package_mapper cache = rhnCache.Cache() cache = rhnCache.ObjectCache(cache) self.cache = rhnCache.NullCache(cache) self.mapper = mapper
def __init__(self, mapper): cache = rhnCache.Cache() # For more speed, we won't compress. # cache = rhnCache.CompressedCache(cache) cache = rhnCache.ObjectCache(cache) self.cache = rhnCache.NullCache(cache) self.mapper = mapper
def __init__(self, channel): self.channel_id = channel['id'] self.last_modified = channel['last_modified'] self.primary_prefix = "repomd_primary.xml" self.other_prefix = "repomd_other.xml" self.filelists_prefix = "repomd_filelists.xml" self.updateinfo_prefix = "repomd_updateinfo.xml" self._channel = None cache = rhnCache.Cache() self.cache = rhnCache.NullCache(cache)
def __init__(self, repository): self.repository = repository cache = rhnCache.Cache() self.cache = rhnCache.NullCache(cache)