From e0b5a6b9716c897ffe5b7afc4e9766fc18baa123 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sun, 20 Jul 2008 05:01:22 +0000 Subject: [PATCH] Redirect some more unmerge() output through writemsg_level() so that it can filtered out when in background mode. svn path=/main/trunk/; revision=11147 --- pym/_emerge/__init__.py | 10 ++++++---- 1 file changed, 6 insertions(+), 4 deletions(-) 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 -- 2.26.2