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

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

populates the package sacks for information from our repositories,
   takes optional archlist for archs to include

Definition at line 241 of file __init__.py.

00241                                                        :
        """populates the package sacks for information from our repositories,
           takes optional archlist for archs to include"""
           
        
        if thisrepo is None:
            repos = self.repos.listEnabled()
        else:
            repos = self.repos.findRepos(thisrepo)
            
        self.log(3, 'Setting up Package Sacks')
        if not archlist:
            archlist = rpmUtils.arch.getArchList()

        archdict = {}
        for arch in archlist:
            archdict[arch] = 1

        self.repos.pkgSack.compatarchs = archdict
        self.repos.populateSack(which=repos)
        self.pkgSack = self.repos.pkgSack
        self.excludePackages()
        self.excludeNonCompatArchs(archlist=archlist)
        for repo in repos:
            self.excludePackages(repo)
            self.includePackages(repo)
        self.plugins.run('exclude')
        self.pkgSack.buildIndexes()
        
    def doUpdateSetup(self):


Generated by  Doxygen 1.6.0   Back to index