aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew
diff options
context:
space:
mode:
authorJack Nagel2014-04-06 00:31:07 -0500
committerJack Nagel2014-04-06 00:31:07 -0500
commit5724bf0bf64db43228bed989a6c7aa8b81a5263f (patch)
tree15d11c3509222d7be34e5d98d15b514a168e5307 /Library/Homebrew
parent6d4882c607987d213e212e8d0fff87136ac7d300 (diff)
downloadhomebrew-5724bf0bf64db43228bed989a6c7aa8b81a5263f.tar.bz2
Always resolve one symlink when loading formula files
This means that tapped formula will always have the correct path, and we can stop calling realpath everywhere.
Diffstat (limited to 'Library/Homebrew')
-rw-r--r--Library/Homebrew/formulary.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb
index 710cd151d..ac4e8d18f 100644
--- a/Library/Homebrew/formulary.rb
+++ b/Library/Homebrew/formulary.rb
@@ -39,7 +39,7 @@ class Formulary
def initialize(name, path)
@name = name
- @path = path
+ @path = path.resolved_path
@class_name = Formulary.class_s(name)
end