summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2008-07-20 05:01:22 +0000
committerZac Medico <zmedico@gentoo.org>2008-07-20 05:01:22 +0000
commite0b5a6b9716c897ffe5b7afc4e9766fc18baa123 (patch)
treee4e9cf040653fdc1d014327dcb9179a821e8cf80
parent39072bea5f47ce4d79aa4fddb57a8047301f4214 (diff)
downloadportage-e0b5a6b9716c897ffe5b7afc4e9766fc18baa123.tar.gz
portage-e0b5a6b9716c897ffe5b7afc4e9766fc18baa123.tar.bz2
portage-e0b5a6b9716c897ffe5b7afc4e9766fc18baa123.zip
Redirect some more unmerge() output through writemsg_level() so that it can
filtered out when in background mode. svn path=/main/trunk/; revision=11147
-rw-r--r--pym/_emerge/__init__.py10
1 files 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