aboutsummaryrefslogtreecommitdiff
path: root/doc/api/ruby/example_package_database.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_package_database.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_package_database.rb')
-rw-r--r--doc/api/ruby/example_package_database.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/doc/api/ruby/example_package_database.rb b/doc/api/ruby/example_package_database.rb
index 913d20277..5201d4d8d 100644
--- a/doc/api/ruby/example_package_database.rb
+++ b/doc/api/ruby/example_package_database.rb
@@ -16,8 +16,7 @@ exit_status = 0
# We start with an Environment, respecting the user's '--environment' choice.
env = EnvironmentMaker.instance.make_from_spec(ExampleCommandLine.instance.environment)
-# The most useful PackageDatabase method is PackageDatabase::query,
-# which is covered in other examples. But there are others:
+# Mostly PackageDatabase is used by Environment. But other methods are useful:
if env.package_database.has_repository_named?('gentoo')
repo = env.package_database.fetch_repository('gentoo')
puts "Repository 'gentoo' exists, and has format '" +