4 Jun
2007
4 Jun
'07
1:51 a.m.
On 6/3/07, Roman Kyrylych <roman.kyrylych@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