From 6d2361b623399dc11b809e17c9efc0db87cdc870 Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Wed, 11 Mar 2009 03:44:14 +0000 Subject: [PATCH] Make DepPriority.__str__() indicate optional deps. (trunk r12586) svn path=/main/branches/2.1.6/; revision=12867 --- pym/_emerge/__init__.py | 2 ++ 1 file changed, 2 insertions(+) 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" -- 2.26.2