summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2007-07-01 08:14:54 +0000
committerZac Medico <zmedico@gentoo.org>2007-07-01 08:14:54 +0000
commit5fd4df9938aa85efc849910603071f358f7b1249 (patch)
treefb7ade7fcb0f127254bbea6b58bda61a91f513c6
parent290d43ae5cb2b2ac435e2be2fec5650d7e955b31 (diff)
downloadportage-5fd4df9938aa85efc849910603071f358f7b1249.tar.gz
portage-5fd4df9938aa85efc849910603071f358f7b1249.tar.bz2
portage-5fd4df9938aa85efc849910603071f358f7b1249.zip
Add medium-soft support to DepPriority.__str__().
svn path=/main/trunk/; revision=7106
-rw-r--r--pym/emerge/__init__.py4
1 files changed, 3 insertions, 1 deletions
diff --git a/pym/emerge/__init__.py b/pym/emerge/__init__.py
index d7380c7d3..475105672 100644
--- a/pym/emerge/__init__.py
+++ b/pym/emerge/__init__.py
@@ -679,8 +679,10 @@ class DepPriority(object):
myvalue = self.__int__()
if myvalue > self.MEDIUM:
return "hard"
- if myvalue > self.SOFT:
+ if myvalue > self.MEDIUM_SOFT:
return "medium"
+ if myvalue > self.SOFT:
+ return "medium-soft"
return "soft"
class FakeVartree(portage.vartree):