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
|
false
|
||||||
elsif !hash_type
|
elsif !hash_type
|
||||||
odie "#{formula}: no tag/revision specified!"
|
odie "#{formula}: no tag/revision specified!"
|
||||||
|
elsif !new_url
|
||||||
|
odie "#{formula}: no url specified!"
|
||||||
else
|
else
|
||||||
rsrc_url = if requested_spec != :devel && new_url =~ /.*ftpmirror.gnu.*/
|
rsrc_url = if requested_spec != :devel && new_url =~ /.*ftpmirror.gnu.*/
|
||||||
new_mirror = new_url.sub "ftpmirror.gnu.org", "ftp.gnu.org/gnu"
|
new_mirror = new_url.sub "ftpmirror.gnu.org", "ftp.gnu.org/gnu"
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user