aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd
diff options
context:
space:
mode:
authorJack Nagel2014-03-27 17:05:17 -0500
committerJack Nagel2014-03-27 17:06:05 -0500
commitcb9ee747e04bd1662d49f1216fd74eb06ba5696b (patch)
tree2d75576552497fe439b817ef7089d9a6725b5afc /Library/Homebrew/cmd
parent1f0d424459e3c3a3002d5a6788904b8e4abdf9f0 (diff)
downloadbrew-cb9ee747e04bd1662d49f1216fd74eb06ba5696b.tar.bz2
Fix Keg#find so we don't have to deal with it everywhere
lol inheritance
Diffstat (limited to 'Library/Homebrew/cmd')
-rw-r--r--Library/Homebrew/cmd/bottle.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/cmd/bottle.rb b/Library/Homebrew/cmd/bottle.rb
index 5f7df309e..790051117 100644
--- a/Library/Homebrew/cmd/bottle.rb
+++ b/Library/Homebrew/cmd/bottle.rb
@@ -84,7 +84,7 @@ module Homebrew extend self
end
index = 0
- Pathname.new(keg).find do |pn|
+ keg.find do |pn|
if pn.symlink? && (link = pn.readlink).absolute?
if link.to_s.start_with?(string)
opoo "Absolute symlink starting with #{string}:" if index.zero?