Send the unmerge failure message to stderr.
authorZac Medico <zmedico@gentoo.org>
Sat, 13 Jan 2007 00:36:54 +0000 (00:36 -0000)
committerZac Medico <zmedico@gentoo.org>
Sat, 13 Jan 2007 00:36:54 +0000 (00:36 -0000)
svn path=/main/trunk/; revision=5623

bin/emerge

index 6c8b7eb8736ceb6171465cf2c207d98e287759ca..35981fb0f29fdb7906b81516e556aabdb8cd1c5a 100755 (executable)
@@ -3439,7 +3439,7 @@ def unmerge(settings, myopts, vartree, unmerge_action, unmerge_files,
 def show_unmerge_failure_message(pkg, ebuild, retval):
 
        from formatter import AbstractFormatter, DumbWriter
-       f = AbstractFormatter(DumbWriter(maxcol=72))
+       f = AbstractFormatter(DumbWriter(sys.stderr, maxcol=72))
 
        msg = []
        msg.append("A removal phase of the '%s' package " % pkg)
@@ -3449,10 +3449,11 @@ def show_unmerge_failure_message(pkg, ebuild, retval):
        msg.append("If necessary, manually remove the ebuild " )
        msg.append("in order to skip the execution of removal phases.")
 
-       print
+       f.add_line_break()
        for x in msg:
                f.add_flowing_data(x)
        f.end_paragraph(1)
+       f.writer.flush()
 
 def chk_updated_info_files(root, infodirs, prev_mtimes, retval):