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

def yum::YumBase::returnPackageByDep (   self,
  depstring 
)

Pass in a generic [build]require string and this function will 
   pass back the best(or first) package it finds providing that dep.

Definition at line 1327 of file __init__.py.

01327                                            :
        """Pass in a generic [build]require string and this function will 
           pass back the best(or first) package it finds providing that dep."""
        
        try:
            pkglist = self.returnPackagesByDep(depstring)
        except Errors.YumBaseError, e:
            raise Errors.YumBaseError, 'No Package found for %s' % depstring
        
        result = self.bestPackageFromList(pkglist)
        if result is None:
            raise Errors.YumBaseError, 'No Package found for %s' % depstring
        
        return result
        
    def bestPackageFromList(self, pkglist):


Generated by  Doxygen 1.6.0   Back to index