[pacman-dev] [PATCH] don't care about a to-be-replaced package's newer version

VMiklos vmiklos at frugalware.org
Fri Jan 13 19:26:13 EST 2006


On Fri, Jan 13, 2006 at 10:43:52PM +0100, Aurelien Foret <aurelien at archlinux.org> wrote:
> Why not immediately check the replace value after the for() iteration 
> added by the patch, and do something like:
> 
>    /* we don't care about a to-be-replaced package's newer version */
>    for(j = trans->packages; j; j=j->next) {
>      ...
>    }
>    if(replace) {
>      continue;
>    }
> 
> Or is there a specific reason to pass in the first "if() / else if()" tests?

no, there isn't. here is an updated patch:
http://frugalware.org/~vmiklos/patches/libpacman-proposed/replace_dont_upgrade_old2.diff

udv / greetings,
VMiklos

-- 
Developer of Frugalware Linux, to make things frugal - http://frugalware.org




More information about the pacman-dev mailing list