From: Sebastian Luther Date: Fri, 21 May 2010 17:03:10 +0000 (+0200) Subject: _emerge.Package.__str__(): handle operation==uninstall X-Git-Tag: v2.2_rc68~586 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=4bbfb39a2de4ab1659586e268399a06743f6cd16;p=portage.git _emerge.Package.__str__(): handle operation==uninstall --- 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