aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formulary.rb4
1 files changed, 3 insertions, 1 deletions
diff --git a/Library/Homebrew/formulary.rb b/Library/Homebrew/formulary.rb
index 77ec98a37..e8c47c9aa 100644
--- a/Library/Homebrew/formulary.rb
+++ b/Library/Homebrew/formulary.rb
@@ -132,7 +132,9 @@ class Formulary
def initialize url
@url = url
- super File.basename(url, ".rb"), HOMEBREW_CACHE_FORMULA/File.basename(url)
+ uri = URI(url)
+ formula = File.basename(uri.path, ".rb")
+ super formula, HOMEBREW_CACHE_FORMULA/File.basename(uri.path)
end
# Downloads the formula's .rb file