From: Zac Medico Date: Wed, 11 Mar 2009 03:44:14 +0000 (-0000) Subject: Make DepPriority.__str__() indicate optional deps. (trunk r12586) X-Git-Tag: v2.1.6.8~210 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=6d2361b623399dc11b809e17c9efc0db87cdc870;p=portage.git Make DepPriority.__str__() indicate optional deps. (trunk r12586) svn path=/main/branches/2.1.6/; revision=12867 --- diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index d7cce1e74..179c908aa 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -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"