projects
/
portage.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2f17d78
)
Make UnmergeDepPriority automatically set optional=True for
author
Zac Medico
<zmedico@gentoo.org>
Wed, 8 Sep 2010 20:34:30 +0000
(13:34 -0700)
committer
Zac Medico
<zmedico@gentoo.org>
Wed, 8 Sep 2010 20:34:30 +0000
(13:34 -0700)
buildtime dependencies.
pym/_emerge/UnmergeDepPriority.py
patch
|
blob
|
history
diff --git
a/pym/_emerge/UnmergeDepPriority.py
b/pym/_emerge/UnmergeDepPriority.py
index c1c19c90066c9f51a79e039a0945b57c4b06a583..0f67f3b78dd6f3d1febd348b65de6369c4c11762 100644
(file)
--- 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