From: Zac Medico Date: Wed, 8 Sep 2010 20:34:30 +0000 (-0700) Subject: Make UnmergeDepPriority automatically set optional=True for X-Git-Tag: v2.2_rc78~4 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=ed1fd651aa0fe8147fe5fea90c307726b6122a55;p=portage.git Make UnmergeDepPriority automatically set optional=True for buildtime dependencies. --- 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