aboutsummaryrefslogtreecommitdiff
path: root/doc/api/ruby/example_match_package.rb
diff options
context:
space:
mode:
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'