diff options
author | Zac Medico <zmedico@gentoo.org> | 2009-03-11 03:44:14 +0000 |
---|---|---|
committer | Zac Medico <zmedico@gentoo.org> | 2009-03-11 03:44:14 +0000 |
commit | 6d2361b623399dc11b809e17c9efc0db87cdc870 (patch) | |
tree | 37fea7293ef1b899e7492adc8159bf91e2ca5f1c /pym | |
parent | 96a7f2628cbd71c9747f321f29e7f1a0247d94af (diff) | |
download | portage-6d2361b623399dc11b809e17c9efc0db87cdc870.tar.gz portage-6d2361b623399dc11b809e17c9efc0db87cdc870.tar.bz2 portage-6d2361b623399dc11b809e17c9efc0db87cdc870.zip |
Make DepPriority.__str__() indicate optional deps. (trunk r12586)
svn path=/main/branches/2.1.6/; revision=12867
Diffstat (limited to 'pym')
-rw-r--r-- | pym/_emerge/__init__.py | 2 |
1 files changed, 2 insertions, 0 deletions
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" |