summaryrefslogtreecommitdiffstats
path: root/pym
diff options
context:
space:
mode:
authorZac Medico <zmedico@gentoo.org>2010-08-19 17:01:16 -0700
committerZac Medico <zmedico@gentoo.org>2010-08-19 17:01:16 -0700
commitcb79ccb754f91d106a69dbce7965a226884950ed (patch)
treece09f89d01cf319b1f326e29daa8e23012b335cf /pym
parentb7cc64b4b20c9a84c2ca04579759e070a89ea0f6 (diff)
downloadportage-cb79ccb754f91d106a69dbce7965a226884950ed.tar.gz
portage-cb79ccb754f91d106a69dbce7965a226884950ed.tar.bz2
portage-cb79ccb754f91d106a69dbce7965a226884950ed.zip
Eliminate the bdeps_optional variables inside depgraph._add_pkg_deps(),
and use the pkg.built attribute instead.
Diffstat (limited to 'pym')
-rw-r--r--pym/_emerge/depgraph.py7
1 files changed, 3 insertions, 4 deletions
diff --git a/pym/_emerge/depgraph.py b/pym/_emerge/depgraph.py
index f2950fb66..d35d8fd7a 100644
--- a/pym/_emerge/depgraph.py
+++ b/pym/_emerge/depgraph.py
@@ -979,7 +979,6 @@ class depgraph(object):
"empty" not in self._dynamic_config.myparams:
edepend["RDEPEND"] = ""
edepend["PDEPEND"] = ""
- bdeps_optional = False
if pkg.built and not removal_action:
if self._frozen_config.myopts.get("--with-bdeps", "n") == "y":
@@ -990,7 +989,7 @@ class depgraph(object):
# could make --with-bdeps=y less effective if it is used to
# adjust merge order to prevent built_with_use() calls from
# failing.
- bdeps_optional = True
+ pass
else:
# built packages do not have build time dependencies.
edepend["DEPEND"] = ""
@@ -1011,8 +1010,8 @@ class depgraph(object):
deps = (
(bdeps_root, edepend["DEPEND"],
- self._priority(buildtime=(not bdeps_optional),
- optional=bdeps_optional),
+ self._priority(buildtime=(not pkg.built),
+ optional=pkg.built),
pkg.built),
(myroot, edepend["RDEPEND"],
self._priority(runtime=True),