From: Zac Medico Date: Sun, 20 Jul 2008 05:01:22 +0000 (-0000) Subject: Redirect some more unmerge() output through writemsg_level() so that it can X-Git-Tag: v2.2_rc2~22 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=e0b5a6b9716c897ffe5b7afc4e9766fc18baa123;p=portage.git Redirect some more unmerge() output through writemsg_level() so that it can filtered out when in background mode. svn path=/main/trunk/; revision=11147 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 14aaa6047..a3562f996 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -9924,12 +9924,14 @@ def unmerge(root_config, myopts, unmerge_action, if (not "--quiet" in myopts): newline="\n" if settings["ROOT"] != "/": - print darkgreen(newline+ \ - ">>> Using system located in ROOT tree "+settings["ROOT"]) + writemsg_level(darkgreen(newline+ \ + ">>> Using system located in ROOT tree %s\n" % \ + settings["ROOT"])) + if (("--pretend" in myopts) or ("--ask" in myopts)) and \ not ("--quiet" in myopts): - print darkgreen(newline+\ - ">>> These are the packages that would be unmerged:") + writemsg_level(darkgreen(newline+\ + ">>> These are the packages that would be unmerged:\n")) # Preservation of order is required for --depclean and --prune so # that dependencies are respected. Use all_selected to eliminate