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
commit0d08a5af00011679acd6d82714e9883f93b9fb7c (patch)
tree1a243278af2ba4ad25196081af902e43a70bdb25 /Library
parent3cd9b6db6a9b30deb8cb66d74496bdc189eba728 (diff)
downloadbrew-0d08a5af00011679acd6d82714e9883f93b9fb7c.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