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

bin/emerge

index 2ec6c0f61fb7683cafb3d927efa9d5a488935aeb..bf33f583940e23f60a3d239e9a9befdd4a28e8ae 100755 (executable)
@@ -678,8 +678,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):