aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorJack Nagel2014-08-23 17:42:13 -0500
committerJack Nagel2014-08-23 17:42:13 -0500
commit1d0a0a7ed4af104e5a7e062d9c0591d16933f962 (patch)
treedd3ece2287199bcd3d7b71b8df5e6ed17482c8b1 /Library
parentad38fa2bc1ca77d7eec99f99977b37f5cb4c1b54 (diff)
downloadhomebrew-1d0a0a7ed4af104e5a7e062d9c0591d16933f962.tar.bz2
Use opt_prefix instead of constructing it manually
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/build.rb3
1 files changed, 1 insertions, 2 deletions
diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb
index 2d4674851..d3adf80de 100644
--- a/Library/Homebrew/build.rb
+++ b/Library/Homebrew/build.rb
@@ -108,8 +108,7 @@ class Build
keg_only_deps = deps.map(&:to_formula).select(&:keg_only?)
deps.map(&:to_formula).each do |dep|
- opt = HOMEBREW_PREFIX.join("opt", dep.name)
- fixopt(dep) unless opt.directory?
+ fixopt(dep) unless dep.opt_prefix.directory?
end
pre_superenv_hacks