Logo Search packages:      
Sourcecode: yum version File versions  Download package

def yum::YumBase::doRepoSetup (   self,
  thisrepo = None 
)

grabs the repomd.xml for each enabled repository and sets up 
   the basics of the repository

Definition at line 204 of file __init__.py.

00204                                         :
        """grabs the repomd.xml for each enabled repository and sets up 
           the basics of the repository"""

        
        self.plugins.run('prereposetup')
        
        repos = []
        if thisrepo is None:
            repos = self.repos.listEnabled()
        else:
            repos = self.repos.findRepos(thisrepo)

        if len(repos) < 1:
            self.errorlog(0, 'No Repositories Available to Set Up')

        for repo in repos:
            if repo.repoXML is not None and len(repo.urls) > 0:
                continue
            try:
                repo.cache = self.conf.getConfigOption('cache')
                repo.baseurlSetup()
                repo.dirSetup()
                self.log(3, 'Baseurl(s) for repo: %s' % repo.urls)
            except Errors.RepoError, e:
                self.errorlog(0, '%s' % e)
                raise
                
            try:
                repo.getRepoXML(text=repo)
            except Errors.RepoError, e:
                self.errorlog(0, 'Cannot open/read repomd.xml file for repository: %s' % repo)
                self.errorlog(0, str(e))
                raise

        self.plugins.run('postreposetup')

    def doSackSetup(self, archlist=None, thisrepo=None):


Generated by  Doxygen 1.6.0   Back to index