aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorMisty De Meo2013-09-02 10:01:36 -0700
committerMisty De Meo2013-09-02 10:01:36 -0700
commit922a4f1b778eb7a0acb03d78f2d0c758f5f6e6e1 (patch)
treecc8654f51c011f40c6502f6e60c9b26ca3859c27 /Library
parente92fa147b3eae234b374538f3aed5205586a0ccf (diff)
downloadbrew-922a4f1b778eb7a0acb03d78f2d0c758f5f6e6e1.tar.bz2
Formula: record full path to non-core formula
If a formula is passed with a relative path, the build process might try to expand it in the wrong directory, where it doesn't exist. Fixes Homebrew/homebrew#22266.
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb2
1 files changed, 1 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 29e87af06..39bea8ee6 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -28,7 +28,7 @@ class Formula
def initialize name='__UNKNOWN__', path=nil
@name = name
# If we got an explicit path, use that, else determine from the name
- @path = path.nil? ? self.class.path(name) : Pathname.new(path)
+ @path = path.nil? ? self.class.path(name) : Pathname.new(path).expand_path
@homepage = self.class.homepage
set_spec :stable