diff options
| author | Misty De Meo | 2013-09-02 10:01:36 -0700 |
|---|---|---|
| committer | Misty De Meo | 2013-09-02 10:01:36 -0700 |
| commit | 922a4f1b778eb7a0acb03d78f2d0c758f5f6e6e1 (patch) | |
| tree | cc8654f51c011f40c6502f6e60c9b26ca3859c27 /Library | |
| parent | e92fa147b3eae234b374538f3aed5205586a0ccf (diff) | |
| download | brew-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.rb | 2 |
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 |
