From 4bbfb39a2de4ab1659586e268399a06743f6cd16 Mon Sep 17 00:00:00 2001 From: Sebastian Luther Date: Fri, 21 May 2010 19:03:10 +0200 Subject: [PATCH] _emerge.Package.__str__(): handle operation==uninstall --- pym/_emerge/Package.py | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/pym/_emerge/Package.py b/pym/_emerge/Package.py index adbd0f45e..b75018605 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 -- 2.26.2