From dcb6fb224dd3ac91c08369e9fbff12349b96e545 Mon Sep 17 00:00:00 2001 From: Jakob Gruber Date: Fri, 25 Mar 2011 00:15:44 +0100 Subject: 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 Signed-off-by: Dan McGee --- src/pacman/query.c | 8 -------- 1 file changed, 8 deletions(-) (limited to 'src/pacman/query.c') diff --git a/src/pacman/query.c b/src/pacman/query.c index d27044eb..5f751191 100644 --- a/src/pacman/query.c +++ b/src/pacman/query.c @@ -261,14 +261,6 @@ static int query_search(alpm_list_t *targets) printf("%s", alpm_pkg_get_name(pkg)); } - /* print the package size with the output if ShowSize option set */ - if(!config->quiet && config->showsize) { - /* Convert byte size to MB */ - double mbsize = (double)alpm_pkg_get_size(pkg) / (1024.0 * 1024.0); - - printf(" [%.2f MB]", mbsize); - } - if (!config->quiet) { if((grp = alpm_pkg_get_groups(pkg)) != NULL) { -- cgit v1.2.3-24-g4f1b