mirror of
https://github.com/gosticks/brew.git
synced 2026-10-07 07:57:00 +00:00
Merge pull request #1807 from MikeMcQuaid/bump-formula-pr-check-url
bump-formula-pr: check for URL presence.
This commit is contained in:
@@ -124,6 +124,8 @@ module Homebrew
|
||||
false
|
||||
elsif !hash_type
|
||||
odie "#{formula}: no tag/revision specified!"
|
||||
elsif !new_url
|
||||
odie "#{formula}: no url specified!"
|
||||
else
|
||||
rsrc_url = if requested_spec != :devel && new_url =~ /.*ftpmirror.gnu.*/
|
||||
new_mirror = new_url.sub "ftpmirror.gnu.org", "ftp.gnu.org/gnu"
|
||||
|
||||
Reference in New Issue
Block a user