Show net upgrade size on -U/-S operations
commit8f30e1b110e5c7bf2ec3eb397fe6880a2c8ee0a9
authorDan McGee <dan@archlinux.org>
Wed, 1 Jun 2011 22:11:45 +0000 (1 17:11 -0500)
committerDan McGee <dan@archlinux.org>
Thu, 2 Jun 2011 22:21:38 +0000 (2 17:21 -0500)
tree5bb9e9f9738ecabf52375767b1e9c7f4f4b84b78
parent142c2132cf3312c1ad38d87e323277664985701c
Show net upgrade size on -U/-S operations

If it is different than the raw installed size metric we already show,
compute the net upgrade size. For some sync operations, this can even be
negative if newer packages are smaller than the ones they replace
locally. Implements FS#12566.

Example:

    Targets (1): telepathy-glib-0.14.7-1

    Total Download Size:    1.07 MiB
    Total Installed Size:   15.72 MiB
    Net Upgrade Size:       -0.29 MiB

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