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

def yum::YumBase::findDeps (   self,
  pkgs 
)

Return the dependencies for a given package, as well
   possible solutions for those dependencies.
   
   Returns the deps as a dict  of:
     packageobject = [reqs] = [list of satisfying pkgs]

Definition at line 1010 of file __init__.py.

01010                             :
        """Return the dependencies for a given package, as well
           possible solutions for those dependencies.
           
           Returns the deps as a dict  of:
             packageobject = [reqs] = [list of satisfying pkgs]"""
        
        results = {}
        self.doRepoSetup()
        self.doRpmDBSetup()

        avail = self.pkgSack.returnPackages()
        exactmatch, matched, unmatched = parsePackages(avail, pkgs)

        if len(unmatched) > 0:
            self.errorlog(0, 'No Match for arguments: %s' % unmatched)

        pkgs = misc.unique(exactmatch + matched)
        
        for pkg in pkgs:
            results[pkg] = {} 
            reqs = pkg.returnPrco('requires');
            reqs.sort()
            pkgresults = results[pkg] # shorthand so we don't have to do the
                                      # double bracket thing
            
            for req in reqs:
                (r,f,v) = req
                if r.startswith('rpmlib('):
                    continue
                
                satisfiers = []

                for po in self.whatProvides(r, f, v):
                    satisfiers.append(po)

                pkgresults[req] = satisfiers
        
        return results
    
    def searchPackages(self, fields, criteria, callback=None):


Generated by  Doxygen 1.6.0   Back to index