cli/install,upgrade: Colorize package size info

This commit is contained in:
Fatih Aşıcı
2010-03-21 19:39:55 +00:00
parent 5937fb2e1b
commit d375422e20
2 changed files with 2 additions and 2 deletions
+1 -1
View File
@@ -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
+1 -1
View File
@@ -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