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

積丹尼 Dan Jacobson jidanni at jidanni.org
Sun Dec 6 21:28:31 UTC 2015


Here it always asks too:

Maybe if I say 'n' then it won't do the actions.

But it says it did them already just then.

Twice too. (Different bug report.)

Maybe in part because I have
# apt-config dump|grep Apti
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";
set.

# aptitude forbid-version perl perl-base perl-doc
Marking version 5.22.1~rc3-2 of package perl as forbidden
Marking version 5.22.1~rc3-2 of package perl-base as forbidden
Marking version 5.22.1~rc3-2 of package perl-doc as forbidden
Marking version 5.22.1~rc3-2 of package perl as forbidden
Marking version 5.22.1~rc3-2 of package perl-base as forbidden
Marking version 5.22.1~rc3-2 of package perl-doc as forbidden
No packages will be installed, upgraded, or removed.
0 packages upgraded, 0 newly installed, 0 to remove and 70 not upgraded.
Need to get 0 B of archives. After unpacking 0 B will be used.
Do you want to continue? [Y/n/?] 
                                         
Current status: 0 (+0) broken, 70 (+0) upgradable, 49753 (+0) new.
#

P.S., for all my bug reports, I have to use

delete-trailing-whitespace is an interactive compiled Lisp function in
`simple.el'.

of emacs, because aptitude makes plenty!

OK, I'll leave it in this time for you to find, "if you can"!

But I know. "Who cares?"

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

OK, but even when that is eventually fixed, I think we -P users are
getting more than we bargained for,

       -P, --prompt
           Always display a prompt before downloading, installing or removing
           packages, even when no actions other than those explicitly
           requested will be performed.

           This corresponds to the configuration option
           Aptitude::CmdLine::Always-Prompt.


I think it is even prompting when there is absolutely nothing left to
do. I think that goes beyond what the man page says.

I just want to be prompted in the cases the man page talks about!

Sure, one could argue that Always means always. But the man page doesn't
say that.

Or maybe there needs to be a Almost Always option...



More information about the Aptitude-devel mailing list