[packagekit] Bug in get updates

Elliot Peele elliot at bentlogic.net
Wed Nov 28 08:26:47 PST 2007


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




More information about the PackageKit mailing list