Make DepPriority.__str__() indicate optional deps.
authorZac Medico <zmedico@gentoo.org>
Thu, 5 Feb 2009 20:40:24 +0000 (20:40 -0000)
committerZac Medico <zmedico@gentoo.org>
Thu, 5 Feb 2009 20:40:24 +0000 (20:40 -0000)
svn path=/main/trunk/; revision=12586

pym/_emerge/__init__.py

index 1a3b5fb0e4d22b45985c87832f3c63b53abfd248..036d9a0d884b24fec86d4b043850e9d25ebde437 100644 (file)
@@ -985,6 +985,8 @@ class DepPriority(AbstractDepPriority):
                return -7
 
        def __str__(self):
+               if self.optional:
+                       return "optional"
                myvalue = self.__int__()
                if myvalue > self.MEDIUM:
                        return "hard"