On 02/21/2011 08:02 PM, Jakob Gruber wrote:
Hi,
these patches add a VerbosePkgLists option to pacman.conf which applies to install, upgrade and remove operations and produces the following example output:
Targets (25):
Pkg Name New Version Old Version Size
asciidoc 8.6.4-1 8.6.3-1 0.15 MB chromium 9.0.597.94-2 9.0.597.94-1 17.80 MB ... wine 1.3.14-1 1.3.13-2 24.67 MB
Total Download Size: 158.41 MB Total Installed Size: 693.05 MB
While the output is identical to Justin Lampley's patch from March 2008 (posted here: https://bugs.archlinux.org/task/15772), the table_display function in these patches should be simpler to use.
I also consolidated size to string conversions (hope I got most of them) and made a few minor adjustments to the pacman manpage.
Messed up a line while rebasing, the fixed patches are attached and https://github.com/schuay/pacman-arch/commits/working is updated. The only change is a one line fix: - pm_asprintf(&str, title, alpm_list_count(targets)); + pm_asprintf(&str, title, alpm_list_count(pkgs));