Remove redundant transaction size output
commit6dfb9d35f8601c3752dc5bd0e8558c48f41a8215
authorAllan McRae <allan@archlinux.org>
Thu, 29 Sep 2011 11:13:22 +0000 (29 21:13 +1000)
committerDan McGee <dan@archlinux.org>
Fri, 30 Sep 2011 15:48:01 +0000 (30 10:48 -0500)
tree5a55d27bbe7c733371a8355283cb2642ddfbcd0e
parent83c05e71bc6e614f6f3d190d5e752a0c5239a2d1
Remove redundant transaction size output

Printing all of "Installed", "Removed" and "Net Upgrade" sizes is
redundant as the difference of the first two is the last. Instead,
only print "Installed Size" and "Net Upgrade Size" when both the
installed and removed are non-zero.

This results in the following output in the following cases:
 - package installation only: Installed Size
 - package removal only: Removed Size
 - package installation involving replacement: Installed + Net Upgrade Size
 - package upgrade: Installed + Net Upgrade Size
 - combination upgrade and installation: Installed + Net Upgrade Size

Download Size remains outputted whenever something is downloaded.

Signed-off-by: Allan McRae <allan@archlinux.org>
Signed-off-by: Dan McGee <dan@archlinux.org>
src/pacman/util.c