summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-09-08 13:34:30 -0700
committerZac Medico <zmedico@gentoo.org>2010-09-08 13:34:30 -0700
commited1fd651aa0fe8147fe5fea90c307726b6122a55 (patch)
treeb3d28c1bf1141b93c645d851fc71bbb3b73c12ca
parent2f17d7811b876be5dc718135f6f9bb756683169b (diff)
downloadportage-ed1fd651aa0fe8147fe5fea90c307726b6122a55.tar.gz
portage-ed1fd651aa0fe8147fe5fea90c307726b6122a55.tar.bz2
portage-ed1fd651aa0fe8147fe5fea90c307726b6122a55.zip
Make UnmergeDepPriority automatically set optional=True for
buildtime dependencies.
-rw-r--r--pym/_emerge/UnmergeDepPriority.py5
1 files changed, 5 insertions, 0 deletions
diff --git a/pym/_emerge/UnmergeDepPriority.py b/pym/_emerge/UnmergeDepPriority.py
index c1c19c900..0f67f3b78 100644
--- a/pym/_emerge/UnmergeDepPriority.py
+++ b/pym/_emerge/UnmergeDepPriority.py
@@ -17,6 +17,11 @@ class UnmergeDepPriority(AbstractDepPriority):
SOFT = -2
MIN = -2
+ def __init__(self, **kwargs):
+ AbstractDepPriority.__init__(self, **kwargs)
+ if self.buildtime:
+ self.optional = True
+
def __int__(self):
if self.runtime:
return 0