Handle formula URLs with query parameters. This is useful for fetching formulas from cgit repositories, which uses ?h= to choose branches.
Closes Homebrew/homebrew#28314. Signed-off-by: Adam Vandenberg <flangy@gmail.com>
This commit is contained in:
parent
daa7b7b6db
commit
629b244cf8
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user