projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0066c26
)
_emerge.Package.__str__(): handle operation==uninstall
author
Sebastian Luther
<SebastianLuther@gmx.de>
Fri, 21 May 2010 17:03:10 +0000
(19:03 +0200)
committer
Zac Medico
<zmedico@gentoo.org>
Fri, 21 May 2010 17:06:09 +0000
(10:06 -0700)
pym/_emerge/Package.py
patch
|
blob
|
history
diff --git
a/pym/_emerge/Package.py
b/pym/_emerge/Package.py
index adbd0f45e9467ba59a147efbf62819dc1b9eea33..b75018605ed3645b666cfba072d4a13258cfebd5 100644
(file)
--- 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