[packagekit] Bug in get updates

Elliot Peele elliot at bentlogic.net
Wed Nov 28 11:45:35 PST 2007


Ken,

We don't have error reporting from the backend. We catch all exceptions
and exit cleanly.

Elliot

On Wed, 2007-11-28 at 11:55 -0500, Ken VanDine wrote:
> Elliot: 
> 
> What is the missing feature?  I haven't seen this problem...  Unless...
> this is why it seems to not find updates for long periods of time.
> 
> --Ken
> 
> On Wed, 2007-11-28 at 11:26 -0500, Elliot Peele wrote:
> > On Wed, 2007-11-28 at 08:01 +0000, Richard Hughes wrote:
> > > On Tue, 2007-11-27 at 18:45 -0500, Elliot Peele wrote:
> > > > > Could you please grab me the output of
> > > > > 
> > > > > pkcon --verbose get updates
> > > > > 
> > > > > and
> > > > > 
> > > > > packagekitd --verbose --backend=conary
> > > > > 
> > > > > (while you do a get-updates call)
> > > 
> > > Cool, thanks for that. I'm seeing:
> > > 
> > > [pk_spawn_emit_whole_lines] pk-spawn.c:135 (18:42:10):   emitting stderr allow-interrupt        true
> > > [pk_spawn_emit_whole_lines] pk-spawn.c:135 (18:42:10):   emitting stderr no-percentage-updates
> > > [pk_spawn_check_child] pk-spawn.c:185 (18:42:14):        Running fork successful
> > > [pk_spawn_check_child] pk-spawn.c:200 (18:42:14):        emitting finished 0
> > > 
> > > ...and then the script exits (cleanly) with nothing else on stdout or
> > > stderr. Ken, do you see this too? I really don't see what could be the
> > > problem here - the only thing it could be is the way we check if a
> > > script has completed:
> > > 
> > > /* check if the child exited */
> > > if (waitpid (spawn->priv->child_pid, &status, WNOHANG) != spawn->priv->child_pid)
> > > 	return TRUE;
> > > 
> > > Would this cause problems for anything the conary backend does?
> > 
> > After some more testing it looks like this is actually a missing feature
> > in the conary backend. I had a configuration issue with conary that was
> > keeping me from updating and the backend just silently failed. I
> > reassigned the bug to myself to add better error reporting.
> > 
> > Elliot
> > 
> > _______________________________________________
> > PackageKit mailing list
> > PackageKit at lists.freedesktop.org
> > http://lists.freedesktop.org/mailman/listinfo/packagekit
> 
> _______________________________________________
> PackageKit mailing list
> PackageKit at lists.freedesktop.org
> http://lists.freedesktop.org/mailman/listinfo/packagekit




More information about the PackageKit mailing list