aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJack Nagel2014-04-06 00:31:07 -0500
committerJack Nagel2014-04-06 00:31:07 -0500
commitd0831c4ef70d6344bc63c304725d256dd86c5283 (patch)
treeb5103704a4344bbdfa1e43e3e894513c6205f208
parentf7f200591c1ce91f4f4ddee1a76b7e1e5d16a453 (diff)
downloadbrew-d0831c4ef70d6344bc63c304725d256dd86c5283.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.
-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