aboutsummaryrefslogtreecommitdiff
path: root/doc/api/ruby/example_dep_tree.rb
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-06-01 13:51:46 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-06-01 13:51:46 +0000
commit87294dc0c47918934ac032e9a080e8cf386f9bf2 (patch)
tree36dc289aa22200601ec28f2d7b497cd078e34ab6 /doc/api/ruby/example_dep_tree.rb
parent3b9f4ed10c9eb6901f33c7037989f3b67eb5de07 (diff)
downloadpaludis-87294dc0c47918934ac032e9a080e8cf386f9bf2.tar.gz
paludis-87294dc0c47918934ac032e9a080e8cf386f9bf2.tar.xz
New Selection + Filter + Generator interface using Environment, replacing the old PackageDatabase Query. Fixes: ticket:559
Diffstat (limited to 'doc/api/ruby/example_dep_tree.rb')
-rw-r--r--doc/api/ruby/example_dep_tree.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/doc/api/ruby/example_dep_tree.rb b/doc/api/ruby/example_dep_tree.rb
index 40acc9650..bddbdcccd 100644
--- a/doc/api/ruby/example_dep_tree.rb
+++ b/doc/api/ruby/example_dep_tree.rb
@@ -115,8 +115,8 @@ end
env = EnvironmentMaker.instance.make_from_spec(ExampleCommandLine.instance.environment)
# Fetch package IDs for all installed packages.
-ids = env.package_database.query(
- Query::SupportsInstalledAction.new, QueryOrder::OrderByVersion)
+ids = env[Selection::AllVersionsSorted.new(
+ Generator::All.new | Filter::SupportsAction.new(InstalledAction))]
# Our results table, mapping the ID to { :has_dep => ?, :has_ext => ? }
results = { }