aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/build.rb
diff options
context:
space:
mode:
authorJack Nagel2014-04-05 12:17:19 -0500
committerJack Nagel2014-04-05 12:17:19 -0500
commitce1f598e98ab5ad9f2ce68f2c55441de66a1214b (patch)
tree3b686e41aae527c96ea1b0d939bfe1e7fc8a4c1b /Library/Homebrew/build.rb
parenta44f725c8b0ed36fa6d82641ace3034a17cedce2 (diff)
downloadbrew-ce1f598e98ab5ad9f2ce68f2c55441de66a1214b.tar.bz2
Avoid realpath where it is not necessary
Symlinks in opt and LinkedKegs point directly at a keg in the cellar, so only resolving one symlink should suffice, and make it clear what path we are actually interested in.
Diffstat (limited to 'Library/Homebrew/build.rb')
-rwxr-xr-xLibrary/Homebrew/build.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/build.rb b/Library/Homebrew/build.rb
index 6e873bcb5..b9ff6703a 100755
--- a/Library/Homebrew/build.rb
+++ b/Library/Homebrew/build.rb
@@ -213,7 +213,7 @@ end
def fixopt f
path = if f.linked_keg.directory? and f.linked_keg.symlink?
- f.linked_keg.realpath
+ f.linked_keg.resolved_path
elsif f.prefix.directory?
f.prefix
elsif (kids = f.rack.children).size == 1 and kids.first.directory?