[Yum-devel] Looking at avalable packages

seth vidal skvidal at linux.duke.edu
Sat Aug 26 16:32:23 UTC 2006


On Fri, 2006-08-25 at 16:19 -0400, Jack Neely wrote:
> Folks,
> 
> What's the best way to look at available packages from a plugin?
> 
>  packages = c.getPackages()
> 
> and filtering based on provides is slow.
> 
>  packages = c.getRepos().getPackageSack().searchProvides("kernel-modules")
> 
> gets me the packages I want to look at, but the prco information isn't
> complete.  Specifically, all the requires seem to be in the returned POs
> but only the "kernel-modules" provide.  Where I need to grok the
> "*-kmod" provide.

The provides aren't fully populated from the packageobject, really? Can
you verify that in some other code b/c I've been checking the provides
listed in yum vs  provides existent in the rpm and I've not seen it.

thanks,
-sv





More information about the Yum-devel mailing list