[Aptitude-devel] Bug#807098: don't ask "Do you want to continue? [Y/n/?]" if there is nothing to do

Manuel A. Fernandez Montecelo manuel.montezelo at gmail.com
Sun Dec 6 16:34:39 UTC 2015


Control: forcemerge 587671 -1


2015-12-06 14:15 積丹尼 Dan Jacobson:
>I always get asked upon purge ~c, even when there's nothing to purge. Even when I do
># aptitude -o Aptitude::CmdLine::Always-Prompt=false purge ~c
>
># apt-config dump|grep Aptitude
>Aptitude "";
>Aptitude::CmdLine "";
>Aptitude::CmdLine::Always-Prompt "true";
>Aptitude::CmdLine::Show-Why "true";
>Aptitude::CmdLine::Show-Deps "true";
>Aptitude::CmdLine::Verbose "1";
>Aptitude::Purge-Unused "true";

Oh, thanks for the hint.  So this variable set to true seems to be the
cause:

  Option: Aptitude::CmdLine::Always-Prompt
  Default: false
  Description: In command-line mode, if this is set, aptitude will
  always prompt before starting to install or remove packages, even if
  the prompt would normally be skipped. This is equivalent to the -P
  command-line option.

When I add "-P" in the command line or add that option to the config
file, it also asks me to confirm every time.  Maybe you can try to set
it false in the config file and try to see if it works for you.


The problem that you mention in the example above is that aptitude
ignores what you ask with "-o" -- that seems to be the long-standing bug
#587671 and its duplicates, so merging.


Cheers.
-- 
Manuel A. Fernandez Montecelo <manuel.montezelo at gmail.com>



More information about the Aptitude-devel mailing list