For optional deps pulled in by --with-bdeps=y, set DepPriority.buildtime to
authorZac Medico <zmedico@gentoo.org>
Tue, 3 Feb 2009 21:46:23 +0000 (21:46 -0000)
committerZac Medico <zmedico@gentoo.org>
Tue, 3 Feb 2009 21:46:23 +0000 (21:46 -0000)
False.

svn path=/main/trunk/; revision=12577

pym/_emerge/__init__.py

index 451827a9b816216fd06404f2c2ab9689b79b8af9..1cf02e6bc5a7b5b72a403515b345e8db813e05ce 100644 (file)
@@ -5095,7 +5095,8 @@ class depgraph(object):
 
                deps = (
                        ("/", edepend["DEPEND"],
-                               self._priority(buildtime=True, optional=bdeps_optional)),
+                               self._priority(buildtime=(not bdeps_optional),
+                               optional=bdeps_optional)),
                        (myroot, edepend["RDEPEND"], self._priority(runtime=True)),
                        (myroot, edepend["PDEPEND"], self._priority(runtime_post=True))
                )