summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/actions.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-10-24 07:04:32 +0000
committerZac Medico <zmedico@gentoo.org>2009-10-24 07:04:32 +0000
commit08915e3ebccfd05776a772d2b224c9c10c96c3eb (patch)
tree83f8a644981eda65b9a52dba51c3aea71f77e0f2 /pym/_emerge/actions.py
parent65a38c1c30b577f43a9e4f523a0ee857a4786174 (diff)
downloadportage-08915e3ebccfd05776a772d2b224c9c10c96c3eb.tar.gz
portage-08915e3ebccfd05776a772d2b224c9c10c96c3eb.tar.bz2
portage-08915e3ebccfd05776a772d2b224c9c10c96c3eb.zip
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
Diffstat (limited to 'pym/_emerge/actions.py')
-rw-r--r--pym/_emerge/actions.py10
1 files changed, 8 insertions, 2 deletions
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()