Add medium-soft support to DepPriority.__str__().
authorZac Medico <zmedico@gentoo.org>
Sun, 1 Jul 2007 08:14:54 +0000 (08:14 -0000)
committerZac Medico <zmedico@gentoo.org>
Sun, 1 Jul 2007 08:14:54 +0000 (08:14 -0000)
svn path=/main/trunk/; revision=7106

pym/emerge/__init__.py

index d7380c7d32cff36240c3a9e473a4d8944ce71694..4751056728c688b3f7cbc96420f49f59b6b3e6cc 100644 (file)
@@ -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):