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

Aurelien Foret aurelien at archlinux.org
Fri Jan 13 16:43:52 EST 2006


VMiklos wrote:
> http://frugalware.org/~vmiklos/patches/libpacman-proposed/replace_dont_upgrade_old.diff

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?
--
Aurelien




More information about the pacman-dev mailing list