Make DepPriority.__str__() indicate optional deps. (trunk r12586)
authorZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 03:44:14 +0000 (03:44 -0000)
committerZac Medico <zmedico@gentoo.org>
Wed, 11 Mar 2009 03:44:14 +0000 (03:44 -0000)
svn path=/main/branches/2.1.6/; revision=12867

pym/_emerge/__init__.py

index d7cce1e745e812c8d660168e74c56a73fe627aa7..179c908aa2461353d2b0a11c917fe626292cb6df 100644 (file)
@@ -966,6 +966,8 @@ class DepPriority(AbstractDepPriority):
                return -7
 
        def __str__(self):
+               if self.optional:
+                       return "optional"
                myvalue = self.__int__()
                if myvalue > self.MEDIUM:
                        return "hard"