summaryrefslogtreecommitdiffstats
path: root/src/pacman/remove.c
diff options
context:
space:
mode:
authorDan McGee <dan@archlinux.org>2011-06-02 00:11:45 +0200
committerDan McGee <dan@archlinux.org>2011-06-03 00:21:38 +0200
commit8f30e1b110e5c7bf2ec3eb397fe6880a2c8ee0a9 (patch)
tree5bb9e9f9738ecabf52375767b1e9c7f4f4b84b78 /src/pacman/remove.c
parent142c2132cf3312c1ad38d87e323277664985701c (diff)
downloadpacman-8f30e1b110e5c7bf2ec3eb397fe6880a2c8ee0a9.tar.gz
pacman-8f30e1b110e5c7bf2ec3eb397fe6880a2c8ee0a9.tar.xz
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>
Diffstat (limited to 'src/pacman/remove.c')
-rw-r--r--src/pacman/remove.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/pacman/remove.c b/src/pacman/remove.c
index 58e6edd5..094a43bf 100644
--- a/src/pacman/remove.c
+++ b/src/pacman/remove.c
@@ -31,7 +31,7 @@
#include "util.h"
#include "conf.h"
-static int remove_target(char *target)
+static int remove_target(const char *target)
{
pmpkg_t *info;
pmdb_t *db_local = alpm_option_get_localdb();