diff options
author | 2010-05-21 19:03:10 +0200 | |
---|---|---|
committer | 2010-05-21 10:06:09 -0700 | |
commit | 4bbfb39a2de4ab1659586e268399a06743f6cd16 (patch) | |
tree | b84f0b591933f16f5f42fa6b09f5e04b5225dc16 | |
parent | Fix depgraph.schedulerGraph() to break DepPriority.satisfied attributes (diff) | |
download | portage-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.py | 6 |
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 |