diff options
author | Jakob Gruber <jakob.gruber@gmail.com> | 2011-03-25 00:15:44 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2011-04-21 00:13:20 +0200 |
commit | dcb6fb224dd3ac91c08369e9fbff12349b96e545 (patch) | |
tree | 89b5ebf7c2f73e96db324f6680a86f7c5842d148 /src/pacman/query.c | |
parent | efd8ae483fe587feccd32c90fbee474aa19a5557 (diff) | |
download | pacman-dcb6fb224dd3ac91c08369e9fbff12349b96e545.tar.gz pacman-dcb6fb224dd3ac91c08369e9fbff12349b96e545.tar.xz |
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/query.c')
-rw-r--r-- | src/pacman/query.c | 8 |
1 files changed, 0 insertions, 8 deletions
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) { |