yum.repos

_wrap_ayum_getKeyForRepo

class yum.repos._wrap_ayum_getKeyForRepo(ayum, ca=False)

This is a wrapper for calling YumBase.getKeyForRepo() because otherwise we take a real reference through the bound method and that is d00m (this applies to YumBase and RepoStorage, hence why we have a seperate class). A “better” fix might be to explicitly pass the YumBase instance to the callback ... API change!

RepoStorage

class yum.repos.RepoStorage(ayum)

This class contains multiple repositories and core configuration data about them.

disableRepo(repoid)

disable a repository from use

fnmatch wildcards may be used to disable a group of repositories. returns repoid of disabled repos as list

enableRepo(repoid)

enable a repository for use

fnmatch wildcards may be used to enable a group of repositories. returns repoid of enables repos as list

findRepos(pattern)

find all repositories matching fnmatch pattern

listEnabled()

return list of enabled repo objects

listGroupsEnabled()

return a list of repo objects that have groups enabled

populateSack(which='enabled', mdtype='metadata', callback=None, cacheonly=0)

This populates the package sack from the repositories, two optional arguments:

  • which=’repoid, enabled, all’
  • mdtype=’metadata, filelists, otherdata, all’
setCache(cacheval)

sets cache value in all repos

setCacheDir(cachedir)

sets the cachedir value in all repos

setFailureCallback(obj)

sets the failure callback for all repos

setMirrorFailureCallback(obj)

sets the failure callback for all mirrors

setProgressBar(obj)

sets the progress bar for downloading files from repos

Repository

class yum.repos.Repository(repoid)

this is an actual repository object

setAttribute(key, value)

sets a generic attribute of this repository

Table Of Contents

Previous topic

yum.repoMDObject

Next topic

yum.rpmsack

This Page