Redirect some more unmerge() output through writemsg_level() so that it can
authorZac Medico <zmedico@gentoo.org>
Sun, 20 Jul 2008 05:01:22 +0000 (05:01 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 20 Jul 2008 05:01:22 +0000 (05:01 -0000)
filtered out when in background mode.

svn path=/main/trunk/; revision=11147

pym/_emerge/__init__.py

index 14aaa604771c7762fcc9acd9cee230efaec86811..a3562f99686e8d7ac00f413ddf2ba15d860c935d 100644 (file)
@@ -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