[packagekit] yum: being naughty with SQL

Richard Hughes hughsient at gmail.com
Wed Jul 2 09:53:49 PDT 2008


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.





More information about the PackageKit mailing list