pkgcore.cache package

Submodules

Module contents

cache subsystem, typically used for storing package metadata

class pkgcore.cache.base(auxdbkeys=None, readonly=False)[source]

Bases: object

Variables:
  • autocommits – Controls whether the template commits every update, or queues up updates.

  • cleanse_keys – Boolean controlling whether the template should drop empty keys for storing.

autocommits = False
chf_type = 'mtime'
cleanse_keys = False
clear()[source]
commit(force=False)[source]
deconstruct_eclasses(eclass_dict)[source]

takes a dict, returns a string representing said dict

default_keys = ('BDEPEND', 'DEPEND', 'RDEPEND', 'PDEPEND', 'IDEPEND', 'DEFINED_PHASES', 'DESCRIPTION', 'EAPI', 'HOMEPAGE', 'INHERIT', 'INHERITED', 'IUSE', 'KEYWORDS', 'LICENSE', 'PROPERTIES', 'REQUIRED_USE', 'RESTRICT', 'SLOT', 'SRC_URI', '_eclasses_')
default_sync_rate = 1
eclass_chf_deserializers
eclass_chf_serializers
eclass_chf_types = ('mtime',)
eclass_splitter = '\t'
property frozen

alias to readonly

has_key(cpv)[source]
items()[source]
keys()[source]
reconstruct_eclasses(cpv, eclass_string)[source]

Turn a string from serialize_eclasses into a dict.

set_sync_rate(rate=0)[source]
validate_entry(cache_item, ebuild_hash_item, eclass_db)[source]
class pkgcore.cache.bulk(*args, **kwds)[source]

Bases: base

commit(force=False)[source]
data
default_sync_rate = 100