aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2011-05-18 22:25:40 +0100
committerAvatar David Leverton <levertond@googlemail.com> 2011-05-18 22:25:40 +0100
commit588ac44cf734545aa9a02ee53a8624ee878de50d (patch)
treeb6957e3a2e71d759fdb65dd7ab840b88e692a97f
parentdb66c29ec9d8ea84670cdfafdbb8ba540ba5ab24 (diff)
downloadpaludis-588ac44cf734545aa9a02ee53a8624ee878de50d.tar.gz
paludis-588ac44cf734545aa9a02ee53a8624ee878de50d.tar.xz
(ruby) Fix for API changes
-rwxr-xr-xruby/demos/find_unmanaged_files.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/ruby/demos/find_unmanaged_files.rb b/ruby/demos/find_unmanaged_files.rb
index d41f7c1..8e05448 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 = []