From d9e6cbebc52c64d8b5c87442adc114ce0fe5243c Mon Sep 17 00:00:00 2001 From: Zac Medico Date: Thu, 5 Feb 2009 20:40:24 +0000 Subject: [PATCH] Make DepPriority.__str__() indicate optional deps. svn path=/main/trunk/; revision=12586 --- pym/_emerge/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/pym/_emerge/__init__.py b/pym/_emerge/__init__.py index 1a3b5fb0e..036d9a0d8 100644 --- a/pym/_emerge/__init__.py +++ b/pym/_emerge/__init__.py @@ -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" -- 2.26.2