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
commitebaf43dc69c52ab80f03776fff94922de193661a (patch)
tree1de55ae2115dc6d212ed70a4bd06dfc53e0fa6ab /Library
parentacee7d04db876ef6f7bd5d40bc9ec8253dbe0851 (diff)
downloadhomebrew-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.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