summaryrefslogtreecommitdiffstats
path: root/src/pacman/util.c
diff options
context:
space:
mode:
authorNathan Jones <nathanj@insightbb.com>2007-06-01 17:00:39 +0200
committerDan McGee <dan@archlinux.org>2007-06-01 17:00:39 +0200
commit80237630af0b2241a8a756d7ed7d2be3f80cfec5 (patch)
tree739f3039f84de677b33f6b7b5f241edb2472ee3d /src/pacman/util.c
parentcb9f046945b0365d7d29ee590a31a08bece1879c (diff)
downloadpacman-80237630af0b2241a8a756d7ed7d2be3f80cfec5.tar.gz
pacman-80237630af0b2241a8a756d7ed7d2be3f80cfec5.tar.xz
Change -z|--showsize flag to ShowSize pacman.conf option
Also cleaned up some duplicate printf lines related to the ShowSize option. Signed-off-by: Nathan Jones <nathanj@insightbb.com> Signed-off-by: Dan McGee <dan@archlinux.org>
Diffstat (limited to 'src/pacman/util.c')
-rw-r--r--src/pacman/util.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/pacman/util.c b/src/pacman/util.c
index e48ea10f..a5876122 100644
--- a/src/pacman/util.c
+++ b/src/pacman/util.c
@@ -294,7 +294,8 @@ void display_targets(alpm_list_t *syncpkgs)
size += dispsize;
isize += alpm_pkg_get_isize(pkg);
- if(config->showsize) {
+ /* print the package size with the output if ShowSize option set */
+ if(alpm_option_get_showsize()) {
/* Convert byte size to MB */
mbdispsize = dispsize / (1024.0 * 1024.0);