aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorCharlie Sharpsteen2011-11-27 16:44:42 -0800
committerCharlie Sharpsteen2011-11-27 16:44:42 -0800
commit5a6cef458c52e75fec3b2ca591a12ab2a11ea001 (patch)
treedac8a4089872680f0e37b5f20fa1dcb2a8817f9a /Library
parent3b570b834b7ab50545028bc22aea1d9422b36891 (diff)
downloadhomebrew-5a6cef458c52e75fec3b2ca591a12ab2a11ea001.tar.bz2
formula.rb: Initialize path to nil or a Pathname
For consistency, ensure that the `path` member of formula objects is always a `Pathname`.
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 9c63a35ff..9609e608e 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -130,7 +130,7 @@ class Formula
@name=name
validate_variable :name
- @path=path
+ @path = path.nil? ? nil : Pathname.new(path)
set_instance_variable 'version'
@version ||= @spec_to_use.detect_version