aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb3
1 files changed, 3 insertions, 0 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 512dafaf0..d6a80ddc1 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -347,6 +347,9 @@ class Formula
# If an instance of Formula is passed, just return it
return name if name.kind_of? Formula
+ # Otherwise, convert to String in case a Pathname comes in
+ name = name.to_s
+
# If a URL is passed, download to the cache and install
if name =~ %r[(https?|ftp)://]
url = name