summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSebastian Luther <SebastianLuther@gmx.de>2010-05-21 19:03:10 +0200
committerZac Medico <zmedico@gentoo.org>2010-05-21 10:06:09 -0700
commit4bbfb39a2de4ab1659586e268399a06743f6cd16 (patch)
treeb84f0b591933f16f5f42fa6b09f5e04b5225dc16
parentFix depgraph.schedulerGraph() to break DepPriority.satisfied attributes (diff)
downloadportage-idfetch-4bbfb39a2de4ab1659586e268399a06743f6cd16.tar.gz
portage-idfetch-4bbfb39a2de4ab1659586e268399a06743f6cd16.tar.bz2
portage-idfetch-4bbfb39a2de4ab1659586e268399a06743f6cd16.zip
_emerge.Package.__str__(): handle operation==uninstall
-rw-r--r--pym/_emerge/Package.py6
1 files changed, 6 insertions, 0 deletions
diff --git a/pym/_emerge/Package.py b/pym/_emerge/Package.py
index adbd0f45..b7501860 100644
--- a/pym/_emerge/Package.py
+++ b/pym/_emerge/Package.py
@@ -148,6 +148,8 @@ class Package(Task):
cpv_color = "PKG_BINARY_MERGE"
else:
cpv_color = "PKG_MERGE"
+ elif self.operation == "uninstall":
+ cpv_color = "PKG_UNINSTALL"
else:
cpv_color = "PKG_NOMERGE"
@@ -162,6 +164,10 @@ class Package(Task):
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