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

def repoquery::YumBaseQuery::queryPkgFactory (   self,
  pkgs 
)
For each given package, create a query.

@type  pkgs: list of L{yum.package.YumAvailablePackage}

@rtype: list of L{queryPkg}

Definition at line 398 of file repoquery.py.

                                   :
        """
        For each given package, create a query.

        @type  pkgs: list of L{yum.package.YumAvailablePackage}

        @rtype: list of L{queryPkg}
        """
        qf = self.options.queryformat or std_qf["nevra"]
        qpkgs = []
        for pkg in pkgs:
            if isinstance(pkg, yum.packages.YumInstalledPackage):
                if self.options.pkgnarrow not in ('all', 'installed', 'extras'):
                    continue
                qpkg = instPkgQuery(pkg, qf)
            else:
                qpkg = repoPkgQuery(pkg, qf)
            qpkgs.append(qpkg)
        return qpkgs


Generated by  Doxygen 1.6.0   Back to index