#1003186 aptitude: is too verbose after updating with -v option

Package:
aptitude
Source:
aptitude
Description:
terminal-based package manager
Submitter:
Michael Hannema
Date:
2022-01-05 18:36:03 UTC
Severity:
normal
Tags:
#1003186#5
Date:
2022-01-05 18:32:17 UTC
From:
To:
Dear Maintainer,

While browsing the source I came upon some functionality that is
apparently unused. When running `aptitude -v update`, it seems
aptitude is meant to only print the number of new/upgradable/broken
packages if they are not zero, and always print them if the -v option is
used multiple times. I deduced this from the logic of the
show_stats_change function in cmdline_util.cc. However, two arguments in
the call to this function are mixed up, causing -v to have the same
behaviour as -vv in this case.

For example, I'm getting this output when updating with -v:

    Current status: 0 (+0) broken, 0 (+0) upgradable, 88466 (+0) new.

While I'm expecting it to be like this:

    Current status: 88466 (+0) new.

The former line is what I would expect when -v is used multiple times.

I have included a patch that switches the arguments. This function is
not called anywhere else in this project.


Regards,
Michael