From 588ac44cf734545aa9a02ee53a8624ee878de50d Mon Sep 17 00:00:00 2001 From: David Leverton Date: Wed, 18 May 2011 22:25:40 +0100 Subject: (ruby) Fix for API changes --- ruby/demos/find_unmanaged_files.rb | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/ruby/demos/find_unmanaged_files.rb b/ruby/demos/find_unmanaged_files.rb index d41f7c135..8e0544858 100755 --- a/ruby/demos/find_unmanaged_files.rb +++ b/ruby/demos/find_unmanaged_files.rb @@ -12,12 +12,12 @@ def get_contents(pids, directories, root) in_contents= [] pids.each do |pid| next if pid.contents_key.nil? - contents = pid.contents_key.value + contents = pid.contents_key.parse_value contents.each do |entry| next if entry.kind_of? ContentsOtherEntry directories.each do |directory| - if (root + entry.location_key.value)[0,directory.length] == directory - in_contents << root + entry.location_key.value + if (root + entry.location_key.parse_value)[0,directory.length] == directory + in_contents << root + entry.location_key.parse_value break; end end @@ -72,7 +72,7 @@ opts.each do | opt, arg | end env = Paludis::EnvironmentFactory.instance.create env_spec -root = env.preferred_root_key.value[-1] == ?/ ? env.preferred_root_key.value.chop : env.preferred_root_key.value +root = env.preferred_root_key.parse_value[-1] == ?/ ? env.preferred_root_key.parse_value.chop : env.preferred_root_key.parse_value directories = [] -- cgit v1.2.3