summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-05-30 02:00:50 -0700
committerZac Medico <zmedico@gentoo.org>2010-05-30 02:00:50 -0700
commit9834be8b6d77c735afcf7bd55b26db9aeb441d1a (patch)
treec48015c833016cc5e9731f9565f86280f087e62d /pym/_emerge/Package.py
parentMove imports to the top and use textwrap.wrap() instead of the formatter (diff)
downloadportage-idfetch-9834be8b6d77c735afcf7bd55b26db9aeb441d1a.tar.gz
portage-idfetch-9834be8b6d77c735afcf7bd55b26db9aeb441d1a.tar.bz2
portage-idfetch-9834be8b6d77c735afcf7bd55b26db9aeb441d1a.zip
Make depgraph._serialize_tasks show a debug message when it
enables 'complete' mode due to an uninstall, and fix the Package.__str__ method to display uninstall tasks properly.
Diffstat (limited to 'pym/_emerge/Package.py')
-rw-r--r--pym/_emerge/Package.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/pym/_emerge/Package.py b/pym/_emerge/Package.py
index 963bfd9f..845d3077 100644
--- a/pym/_emerge/Package.py
+++ b/pym/_emerge/Package.py
@@ -159,15 +159,13 @@ class Package(Task):
if self.type_name == "installed":
if self.root != "/":
s += " in '%s'" % self.root
+ if self.operation == "uninstall":
+ s += " scheduled for uninstall"
else:
if self.operation == "merge":
s += " scheduled for merge"
if self.root != "/":
s += " to '%s'" % self.root
- elif self.operation == "uninstall":
- s += " scheduled for uninstall"
- if self.root != "/":
- s += " from '%s'" % self.root
s += ")"
return s