aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2007-06-07 14:43:43 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2007-06-07 14:43:43 +0000
commitd3deef0fffaff531b414b8ec8db8671f4f8679ef (patch)
treeb1c2d6460433fdee218a4078a5a5e2f0795516b8
parentccf6a5d34423a3bc98533c10e65507faef8fb94b (diff)
downloadpaludis-d3deef0fffaff531b414b8ec8db8671f4f8679ef.tar.gz
paludis-d3deef0fffaff531b414b8ec8db8671f4f8679ef.tar.xz
rbrown doesn't like my method names :-(
-rw-r--r--ruby/demos/check_linkage.rb4
1 files changed, 2 insertions, 2 deletions
diff --git a/ruby/demos/check_linkage.rb b/ruby/demos/check_linkage.rb
index ad4f7d7..3dd5cc7 100644
--- a/ruby/demos/check_linkage.rb
+++ b/ruby/demos/check_linkage.rb
@@ -111,7 +111,7 @@ def read_shell_vars filename
vars
end
-def is_eligible filename
+def eligible? filename
dirname = filename
while dirname != "/"
dirname = File.dirname(dirname)
@@ -199,7 +199,7 @@ env.package_database.repositories.each do | repo |
repo.version_specs(pkg).each do | ver |
repo.contents(pkg, ver).entries.each do | entry |
entry.kind_of? Paludis::ContentsFileEntry or next
- is_eligible(entry.name) or next
+ eligible?(entry.name) or next
(entry.name =~ /\.(la|so|so\..*)$/ or executable(entry.name)) or next
check_file entry.name or next
puts " * #{entry.name} is broken" if verbose