Make conditional more obvious
This commit is contained in:
parent
281494c255
commit
51bec382b0
@ -394,9 +394,12 @@ class Formula
|
||||
if name =~ %r{(.+)/(.+)/(.+)}
|
||||
tap_name = "#$1-#$2".downcase
|
||||
tapd = Pathname.new("#{HOMEBREW_LIBRARY}/Taps/#{tap_name}")
|
||||
|
||||
if tapd.directory?
|
||||
tapd.find_formula do |relative_pathname|
|
||||
return "#{tapd}/#{relative_pathname}" if relative_pathname.stem.to_s == $3
|
||||
end if tapd.directory?
|
||||
end
|
||||
end
|
||||
end
|
||||
# Otherwise don't resolve paths or URLs
|
||||
return name
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user