aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAvatar David Leverton <levertond@googlemail.com> 2007-07-04 19:45:03 +0000
committerAvatar David Leverton <levertond@googlemail.com> 2007-07-04 19:45:03 +0000
commite931fb60ebe5fec2effef02435aad25f9d054845 (patch)
treeb2d56bfd91264c82ed65932c2dc2b9baf03bef86
parent4aeaa7c57332c125252f7b4e73f891ab95c6f20d (diff)
downloadpaludis-e931fb60ebe5fec2effef02435aad25f9d054845.tar.gz
paludis-e931fb60ebe5fec2effef02435aad25f9d054845.tar.xz
Slightly less unfortunate variable naming.
-rw-r--r--ruby/demos/check_linkage.rb8
1 files changed, 4 insertions, 4 deletions
diff --git a/ruby/demos/check_linkage.rb b/ruby/demos/check_linkage.rb
index 0fa6f3f..581717b 100644
--- a/ruby/demos/check_linkage.rb
+++ b/ruby/demos/check_linkage.rb
@@ -193,7 +193,7 @@ env = Paludis::EnvironmentMaker.instance.make_from_spec env_spec
status "Checking linkage for package-manager installed files"
-files = { }
+pkg_files = { }
directories = { }
env.package_database.repositories.each do | repo |
repo.installed_interface or next
@@ -206,8 +206,8 @@ env.package_database.repositories.each do | repo |
entry.kind_of? Paludis::ContentsFileEntry or next
eligible?(entry.name) or next
(entry.name =~ /\.(la|so|so\..*)$/ or executable(entry.name)) or next
- files[package] ||= []
- files[package] << entry.name
+ pkg_files[package] ||= []
+ pkg_files[package] << entry.name
directories[File.dirname(entry.name)] = true
end
end
@@ -218,7 +218,7 @@ end
ENV["LD_LIBRARY_PATH"] = (Dir["/lib*"] + Dir["/usr/lib*"] + ld_so_conf + directories.keys).join(":")
broken = [ ]
-files.each_pair do | package, files |
+pkg_files.each_pair do | package, files |
files.each do | filename |
check_file filename or next
puts " * #{filename} is broken" if verbose