From d375422e2073eaf88fc413ed3e516d005d0a5f63 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fatih=20A=C5=9F=C4=B1c=C4=B1?= Date: Sun, 21 Mar 2010 19:39:55 +0000 Subject: [PATCH] cli/install,upgrade: Colorize package size info --- pisi/operations/install.py | 2 +- pisi/operations/upgrade.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/pisi/operations/install.py b/pisi/operations/install.py index db1d2280..29973e2a 100644 --- a/pisi/operations/install.py +++ b/pisi/operations/install.py @@ -73,7 +73,7 @@ def install_pkg_names(A, reinstall = False): total_size, cached_size = operations.helper.calculate_download_sizes(order) total_size, symbol = util.human_readable_size(total_size) - ctx.ui.info(_('Total size of package(s): %.2f %s') % (total_size, symbol)) + ctx.ui.info(util.colorize(_('Total size of package(s): %.2f %s') % (total_size, symbol), "yellow")) if ctx.get_option('dry_run'): return True diff --git a/pisi/operations/upgrade.py b/pisi/operations/upgrade.py index 7415ab5b..a9d40948 100644 --- a/pisi/operations/upgrade.py +++ b/pisi/operations/upgrade.py @@ -139,7 +139,7 @@ def upgrade(A=[], repo=None): total_size, cached_size = operations.helper.calculate_download_sizes(order) total_size, symbol = util.human_readable_size(total_size) - ctx.ui.info(_('Total size of package(s): %.2f %s') % (total_size, symbol)) + ctx.ui.info(util.colorize(_('Total size of package(s): %.2f %s') % (total_size, symbol), "yellow")) if ctx.get_option('dry_run'): return