summaryrefslogtreecommitdiff
path: root/src/pacman/util.c
diff options
context:
space:
mode:
authorJakob Gruber <jakob.gruber@gmail.com>2011-03-25 00:15:44 +0100
committerDan McGee <dan@archlinux.org>2011-04-20 17:13:20 -0500
commitdcb6fb224dd3ac91c08369e9fbff12349b96e545 (patch)
tree89b5ebf7c2f73e96db324f6680a86f7c5842d148 /src/pacman/util.c
parentefd8ae483fe587feccd32c90fbee474aa19a5557 (diff)
Remove ShowSize option
Dan: The commit message originally referenced "VerbosePkgLists", but I'm going to change the name of the option. In addition, this patch serves a purpose being standalone- we should really do things like this with -S --print and hopefully -Q --print in the future. Signed-off-by: Jakob Gruber <jakob.gruber@gmail.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/util.c')
-rw-r--r--src/pacman/util.c12
1 files changed, 2 insertions, 10 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c
index c4773481..cf33dabf 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -540,16 +540,8 @@ void display_targets(const alpm_list_t *pkgs, int install)
}
isize += alpm_pkg_get_isize(pkg);
- /* print the package size with the output if ShowSize option set */
- if(config->showsize) {
- double mbsize = (double)alpm_pkg_get_size(pkg) / (1024.0 * 1024.0);
-
- pm_asprintf(&str, "%s-%s [%.2f MB]", alpm_pkg_get_name(pkg),
- alpm_pkg_get_version(pkg), mbsize);
- } else {
- pm_asprintf(&str, "%s-%s", alpm_pkg_get_name(pkg),
- alpm_pkg_get_version(pkg));
- }
+ pm_asprintf(&str, "%s-%s", alpm_pkg_get_name(pkg),
+ alpm_pkg_get_version(pkg));
targets = alpm_list_add(targets, str);
}