diff options
| author | Jack Nagel | 2014-04-05 12:17:19 -0500 |
|---|---|---|
| committer | Jack Nagel | 2014-04-05 12:17:19 -0500 |
| commit | ce1f598e98ab5ad9f2ce68f2c55441de66a1214b (patch) | |
| tree | 3b686e41aae527c96ea1b0d939bfe1e7fc8a4c1b /Library/Homebrew/build.rb | |
| parent | a44f725c8b0ed36fa6d82641ace3034a17cedce2 (diff) | |
| download | brew-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-x | Library/Homebrew/build.rb | 2 |
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? |
