Merge pull request #1807 from MikeMcQuaid/bump-formula-pr-check-url
bump-formula-pr: check for URL presence.
This commit is contained in:
commit
df46d62923
@ -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"
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user