[pacman-dev] [PATCH] Change the exit code for pacman_deptest() and some clean up.

Dan McGee dpmcgee at gmail.com
Fri Jun 29 09:55:04 EDT 2007


On 6/29/07, Xavier <shiningxc at gmail.com> wrote:
> 2007/6/29, Andrew Fyfe <andrew at neptune-one.net>:
>
> > I need to do some more research before playing with the code :) I saw
> > the comment in pacman_deptest() and assumed there was still a problem
> > with alpm_splitdeps().
> >
> > >
> > > I just find this code in pacman_deptest rather curious, because it
> > > indeed looks out of place. So I think your patch for this function is
> > > correct.
> > >
> > > Ah one little thing, I wonder if this free(saved_target) that you
> > > already removed
> > > could be replaced by free(dep).
> > Done :)
> >
>
> Another thing I missed earlier, why is this deps.h needed ?
> Isn't it only in the backend anyway ? I don't think pacman should have
> access to it.

This is correct- The only headers that should need inclusion from the
pacman frontend are those that were already there- alpm.h and
alpm_list.h. The rest are not installed on the system. I can fix this
if you want, otherwise I'll let you push a new version.

> Otherwise, I think it's fine now :) But since I don't have enough
> experience either,
> it would be better if someone looked at it also :D

The rest of the patch looks fine if you make that one small change.
Congrats on delving into C code. :P

-Dan




More information about the pacman-dev mailing list