pkgcraft.repo package¶
Submodules¶
pkgcraft.repo.base module¶
- class pkgcraft.repo.base.Repo(path, id=None, /, int priority=0)¶
Bases:
object
Package repo.
- __init__()¶
Create a Repo from a path.
- categories¶
Get a repo’s categories.
- id¶
Get a repo’s id.
- iter(self, restrict=None)¶
Iterate over a repo’s packages, optionally applying a restriction.
- iter_cpv(self)¶
- packages(cat)¶
Get a repo’s packages for a category.
- path¶
Get a repo’s path.
- versions(cat, pkg)¶
Get a repo’s versions for a package.
pkgcraft.repo.ebuild module¶
- class pkgcraft.repo.ebuild.ConfiguredRepo¶
Bases:
EbuildRepo
Configured ebuild package repo.
- class pkgcraft.repo.ebuild.EbuildRepo¶
Bases:
Repo
Ebuild package repo.
- configure(config)¶
Return a configured repo using the given config.
- eapi¶
Get an ebuild repo’s EAPI.
- licenses¶
Get an ebuild repo’s inherited licenses.
- masters¶
Get an ebuild repo’s masters.
- metadata¶
Get an ebuild repo’s metadata.
- metadata_regen(self, int jobs=0, force=False, path=None)¶
Regenerate an ebuild repo’s package metadata cache.
pkgcraft.repo.fake module¶
pkgcraft.repo.set module¶
- class pkgcraft.repo.set.RepoSet(*repos)¶
Bases:
object
Immutable, ordered repo set.
- __init__(*args, **kwargs)¶
- categories¶
Get a repo set’s categories.
- iter(self, restrict=None)¶
Iterate over a repo set’s packages, optionally applying a restriction.
- packages(cat)¶
Get a repo set’s packages for a category.
- repos¶
Return the set’s repos in order.
- versions(cat, pkg)¶
Get a repo set’s versions for a package.