From 08915e3ebccfd05776a772d2b224c9c10c96c3eb Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Sat, 24 Oct 2009 07:04:32 +0000 Subject: Add a --unordered-display option for use with --tree. This allows the display to be optimized differently since the merge order is not preserved. Thanks to Sebastian Mingramm (few) for the initial patch. (trunk r14703) svn path=/main/branches/2.1.7/; revision=14712 --- pym/_emerge/actions.py | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) (limited to 'pym/_emerge/actions.py') diff --git a/pym/_emerge/actions.py b/pym/_emerge/actions.py index d90ea7b92..f8b5346a6 100644 --- a/pym/_emerge/actions.py +++ b/pym/_emerge/actions.py @@ -176,8 +176,14 @@ def action_build(settings, trees, mtimedb, else: action = "merged" if "--tree" in myopts and action != "fetched": # Tree doesn't work with fetching - print() - print(darkgreen("These are the packages that would be %s, in reverse order:") % action) + if "--unordered-display" in myopts: + portage.writemsg_stdout("\n" + \ + darkgreen("These are the packages that " + \ + "would be %s:" % action) + "\n\n") + else: + portage.writemsg_stdout("\n" + \ + darkgreen("These are the packages that " + \ + "would be %s, in reverse order:" % action) + "\n\n") print() else: print() -- cgit v1.2.3-1-g7c22