[packagekit] yum: being naughty with SQL

seth vidal svidal at redhat.com
Mon Jul 7 10:26:23 PDT 2008


On Wed, 2008-07-02 at 17:53 +0100, Richard Hughes wrote:
> On Wed, 2008-07-02 at 12:41 -0400, seth vidal wrote:
> > > I know accessing the database without using yum is bad, but we are only
> > > reading it rather than changing anything. Yell if you have reservations
> > > about doing this, or anything else we can try.
> > 
> > You're not getting excludes, incompatible arches, repository or yum
> > config settings of any type in the process if you go directly to the
> > sqlite. The excludes alone can be expensive.
> 
> Sure, I said it was hacky.
> 
> > where does search-group.py? In pk? I'll see what I can come up with for
> > the difference.
> 
> You want to look at yumBackend.py See
> http://gitweb.freedesktop.org/?p=packagekit.git;a=blob;f=backends/yum/helpers/yumBackend.py for an online copy.
> 
> Richard.

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.

-sv




More information about the PackageKit mailing list