aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ɓukasz P. Michalik <lmi@ift.uni.wroc.pl> 2011-05-31 13:12:25 +0200
committerAvatar Ciaran McCreesh <ciaran.mccreesh@googlemail.com> 2011-05-31 12:11:15 +0100
commit60715c492060cfc47f285d2ed7287b46dc207cde (patch)
tree0b0235f839721982c86a4f5cb859e0f6eddeb08d
parent3c9416ee3093436bac908e3d985fbe70e0eb1181 (diff)
downloadpaludis-60715c492060cfc47f285d2ed7287b46dc207cde.tar.gz
paludis-60715c492060cfc47f285d2ed7287b46dc207cde.tar.xz
(ruby) Fix more
-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 = []