[pacman-dev] -Sc and -Scc default actions

Dan McGee dpmcgee at gmail.com
Sun Jun 3 21:51:38 EDT 2007


On 6/3/07, Roman Kyrylych <roman.kyrylych at gmail.com> wrote:
>                 /* full cleanup */
> -               if(!yesno(_("Do you want to remove all packages from cache? [Y/n] ")))
> +               if(yesno(_("Do you want to remove all packages from cache? [y/N] ")))
>                         return(0);
>                 printf(_("removing all packages from cache... "));

This change doesn't work quite as you intended, Roman. yesno() returns
a 1 on three conditions- a 'Y' or 'YES' is entered, or nothing at all
was entered. Thus, there is no easy way to change the default answer
from Y. yesno() will need to be rewritten to support a parameter
saying which answer should be the default.

-Dan




More information about the pacman-dev mailing list