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

def yumdownloader::YumDownloader::doUtilYumSetup (   self,
  opts 
)
do a default setup for all the normal/necessary yum components,
   really just a shorthand for testing

Definition at line 270 of file yumdownloader.py.

                                 :
        """do a default setup for all the normal/necessary yum components,
           really just a shorthand for testing"""
        try:
            self._getRepos(doSetup = True)
            # if '--source' is used the add src to the archlist
            if opts.source:
                archlist = rpmUtils.arch.getArchList() + ['src']    
            elif opts.archlist:
                archlist = []
                for a in opts.archlist.split(','):
                    archlist.extend(rpmUtils.arch.getArchList(a))
            else:
                archlist = rpmUtils.arch.getArchList()
            self._getSacks(archlist=archlist)
        except yum.Errors.YumBaseError, msg:
            self.logger.critical(str(msg))
            sys.exit(1)


Generated by  Doxygen 1.6.0   Back to index