aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2009-02-17 00:25:44 +0000
committerAvatar Ingmar Vanhassel <ingmar@exherbo.org> 2009-02-17 00:25:57 +0000
commit9498752c4f8922bc4031e3a2febe883cf543de79 (patch)
treee8b57bbe1d3f066f18946bc624560009669558e7
parent48413ef947ccbdd1be4a9f9846ab35f60c2e5fd2 (diff)
downloadpaludis-9498752c4f8922bc4031e3a2febe883cf543de79.tar.gz
paludis-9498752c4f8922bc4031e3a2febe883cf543de79.tar.xz
(ruby) find_unmanaged_files.rb: Update for API changes in 0db602ce.
-rwxr-xr-xruby/demos/find_unmanaged_files.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/ruby/demos/find_unmanaged_files.rb b/ruby/demos/find_unmanaged_files.rb
index f9bd550..801679d 100755
--- a/ruby/demos/find_unmanaged_files.rb
+++ b/ruby/demos/find_unmanaged_files.rb
@@ -17,10 +17,10 @@ def get_contents(repo, files, root)
next if pid.contents_key.nil?
contents = pid.contents_key.value
contents.each do |entry|
- next if entry.kind_of? ContentsMiscEntry
+ next if entry.kind_of? ContentsOtherEntry
files.each do |file|
- if (root + entry.name)[0,file.length] == file
- in_contents << root + entry.name
+ if (root + entry.location_key.value)[0,file.length] == file
+ in_contents << root + entry.location_key.value
break;
end
end