[packagekit] Questions for PK and future zypp backend development
Thomas Wood
thomas at openedhand.com
Fri Jan 11 06:38:41 PST 2008
On Thu, 2008-01-10 at 23:04 +0000, Thomas Wood wrote:
> On Thu, 2008-01-10 at 22:56 +0000, Richard Hughes wrote:
> > On Thu, 2008-01-10 at 22:53 +0000, Thomas Wood wrote:
> > > On Thu, 2008-01-10 at 15:09 -0700, Boyd Timothy wrote:
> > > > Hey everyone,
> [...]
> >
> > > I also noticed that the PackageKit daemon calls backend_init when it
> > > first starts up, but also on each subsequent command. Is there any
> > > particular reason for this?
> >
> > Well, that's designed as an "init, assuming you are doing one thing and
> > then closing down" i.e. open databases and lock. We probably need two
> > init levels, one for a per-command "locking and stuff" and one for a
> > per-invocation (with the databases and caches) step.
>
> The problem is ipkg doesn't have kind of sophisticated stuff like this,
> it has just one init procedure which sets it up ready for any command.
One thing I've just discovered (I don't know if this is an error in my
backend), is that multiple processes often overlap because there is a
significant delay from the function finishing and destroy being called.
Is this intentional?
Regards,
Thomas
More information about the PackageKit
mailing list