From cb9ee747e04bd1662d49f1216fd74eb06ba5696b Mon Sep 17 00:00:00 2001 From: Jack Nagel Date: Thu, 27 Mar 2014 17:05:17 -0500 Subject: Fix Keg#find so we don't have to deal with it everywhere lol inheritance --- Library/Homebrew/cmd/bottle.rb | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'Library/Homebrew/cmd') 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? -- cgit v1.2.3