aboutsummaryrefslogtreecommitdiff
path: root/doc/api/ruby/example_match_package.rb
diff options
context:
space:
mode:
authorAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-11-13 00:01:03 +0000
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2008-11-13 15:42:28 +0000
commit635179144839fa31015fe85cd9226a655d217f03 (patch)
tree3756d05592232534a80d52fcc8e50ee7dc319768 /doc/api/ruby/example_match_package.rb
parent8ae61a8b1335efdaef0208a138b178ba221b4b18 (diff)
downloadpaludis-635179144839fa31015fe85cd9226a655d217f03.tar.gz
paludis-635179144839fa31015fe85cd9226a655d217f03.tar.xz
Add MatchPackageOptions.
Fixes: ticket:655
Diffstat (limited to 'doc/api/ruby/example_match_package.rb')
-rw-r--r--doc/api/ruby/example_match_package.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/doc/api/ruby/example_match_package.rb b/doc/api/ruby/example_match_package.rb
index e0ac15d9f..293eb7bc3 100644
--- a/doc/api/ruby/example_match_package.rb
+++ b/doc/api/ruby/example_match_package.rb
@@ -28,11 +28,11 @@ world = env.set('world')
# For each ID:
ids.each do | id |
# Is it paludis?
- if match_package(env, parse_user_package_dep_spec('sys-apps/paludis', env, []), id)
+ if match_package(env, parse_user_package_dep_spec('sys-apps/paludis', env, []), id, [])
puts id.to_s.ljust(49) + ': paludis'
- elsif match_package_in_set(env, system, id)
+ elsif match_package_in_set(env, system, id, [])
puts id.to_s.ljust(49) + ': system'
- elsif match_package_in_set(env, world, id)
+ elsif match_package_in_set(env, world, id, [])
puts id.to_s.ljust(49) + ': world'
else
puts id.to_s.ljust(49) + ': nothing'