pkgcore.repository.util module¶
- class pkgcore.repository.util.RepositoryGroup(repos=(), combined=None)[source]¶
Bases:
DictMixin
Group of repos as a single unit.
- Args:
repos (iterable): repo instances combined: combined repo, if None a multiplex repo is created
- property has_match¶
alias to combined.has_match
- property itermatch¶
alias to combined.itermatch
- property match¶
alias to combined.match
- property path_restrict¶
alias to combined.path_restrict
- property real¶
- repo_match(path)[source]¶
Find the repo containing a path.
- Args:
path (str): path in the filesystem
- Returns:
repo object if a matching repo is found, otherwise None.
- property virtual¶
- class pkgcore.repository.util.SimpleTree(cpv_dict, pkg_klass=<class 'pkgcore.ebuild.cpv.VersionedCPV'>, livefs=False, frozen=True, repo_id=None)[source]¶
Bases:
tree
in-memory repository used for testing or simple shims.