summaryrefslogtreecommitdiffstats
path: root/pym/_emerge/actions.py
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2009-10-23 05:19:59 +0000
committerZac Medico <zmedico@gentoo.org>2009-10-23 05:19:59 +0000
commit351ae4f408f327def14b13c653a82a5e96278ee0 (patch)
tree06d4e31963fba310bda033b75e84f8cf45b8f726 /pym/_emerge/actions.py
parent2ac555f3b25262fa6bc1f24a487223b178ecf937 (diff)
downloadportage-351ae4f408f327def14b13c653a82a5e96278ee0.tar.gz
portage-351ae4f408f327def14b13c653a82a5e96278ee0.tar.bz2
portage-351ae4f408f327def14b13c653a82a5e96278ee0.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. svn path=/main/trunk/; revision=14703
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 24617a7cf..ea7f241a8 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()