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 | ebaf43dc69c52ab80f03776fff94922de193661a (patch) | |
| tree | 1de55ae2115dc6d212ed70a4bd06dfc53e0fa6ab /Library | |
| parent | acee7d04db876ef6f7bd5d40bc9ec8253dbe0851 (diff) | |
| download | homebrew-ebaf43dc69c52ab80f03776fff94922de193661a.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 #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 |
