[packagekit] yum: being naughty with SQL

seth vidal svidal at redhat.com
Tue Jul 8 05:08:04 PDT 2008


On Tue, 2008-07-08 at 10:11 +0100, Richard Hughes wrote:
> On Mon, 2008-07-07 at 22:46 -0400, seth vidal wrote:
> > On Mon, 2008-07-07 at 23:44 +0100, Richard Hughes wrote:
> > > On Mon, 2008-07-07 at 13:26 -0400, seth vidal wrote:
> > > > Last week I implemented a simple searchNames() method to the
> > pkgSack
> > > > object that will let you search a list of names quickly. I think
> > that
> > > > should meet your needs.
> > > 
> > > Ahh cool. I couldn't find it on yum master -- are you putting it on
> > a
> > > branch somewhere? Thanks.
> > > 
> > 
> > the 3.2.X branch.
> 
> Looks good, thanks. I couldn't get this to work with:
> 
> yumbase.pkgSack.searchNames(packages)
> 
> Isn't there something needed in packageSack.py for this to work?
> 



This works fine for me on 3.2.X

import yum
my = yum.YumBase()
my.pkgSack.searchNames(names=['yum', 'yum-utils'])

you sure 'packages' is a list?

-sv





More information about the PackageKit mailing list