_emerge.Package.__str__(): handle operation==uninstall
authorSebastian Luther <SebastianLuther@gmx.de>
Fri, 21 May 2010 17:03:10 +0000 (19:03 +0200)
committerZac Medico <zmedico@gentoo.org>
Fri, 21 May 2010 17:06:09 +0000 (10:06 -0700)
pym/_emerge/Package.py

index adbd0f45e9467ba59a147efbf62819dc1b9eea33..b75018605ed3645b666cfba072d4a13258cfebd5 100644 (file)
@@ -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