aboutsummaryrefslogtreecommitdiff
path: root/doc/api/ruby
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2008-03-07 11:15:59 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2008-03-07 11:15:59 +0000
commit104c36aa1a84cfbabca4a7e3163262f9a4d095d2 (patch)
treec1b5d7eeb043bce5655148f7d80b72b163fb1f13 /doc/api/ruby
parentf23a5ee234120f82456569918084a77998d2193d (diff)
downloadpaludis-104c36aa1a84cfbabca4a7e3163262f9a4d095d2.tar.gz
paludis-104c36aa1a84cfbabca4a7e3163262f9a4d095d2.tar.xz
Remove remaining references to UseDepSpec.
Diffstat (limited to 'doc/api/ruby')
-rw-r--r--doc/api/ruby/example_dep_tree.rb14
1 files changed, 6 insertions, 8 deletions
diff --git a/doc/api/ruby/example_dep_tree.rb b/doc/api/ruby/example_dep_tree.rb
index ba7472d01..40acc9650 100644
--- a/doc/api/ruby/example_dep_tree.rb
+++ b/doc/api/ruby/example_dep_tree.rb
@@ -29,10 +29,9 @@ def collect_dependencies env, id, spec, results, recursing_sets = {}
collect_dependencies(env, id, child, results, recursing_sets)
end
- elsif spec.instance_of? UseDepSpec
- # Was this use flag enabled (or, if we're inverse, disabled) when we
- # built this package?
- if env.query_use(spec.flag, id) ^ spec.inverse?
+ elsif spec.instance_of? ConditionalDepSpec
+ # Was this condition satisfied when we built this package?
+ if spec.condition_met?
spec.each do | child |
collect_dependencies(env, id, child, results, recursing_sets)
end
@@ -88,10 +87,9 @@ def collect_extensions env, id, spec, results, recursing_sets = {}
collect_extensions(env, id, child, results, recursing_sets)
end
- elsif spec.instance_of? UseDepSpec
- # Was this use flag enabled (or, if we're inverse, disabled) when we
- # built this package?
- if env.query_use(spec.flag, id) ^ spec.inverse?
+ elsif spec.instance_of? ConditionalDepSpec
+ # Was this condition satisfied when we built this package?
+ if spec.condition_met?
spec.each do | child |
collect_extensions(env, id, child, results, recursing_sets)
end