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)
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):