aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorMike McQuaid2017-01-09 12:16:55 +0000
committerMike McQuaid2017-01-09 12:16:55 +0000
commitc276a44ebae578bdbd3048916f2a90ae20e72dd1 (patch)
tree484f060954a3ecce8c155b5d478f1e2da3edf9fd
parentf7bccee2145547d21b2629cab8b5fddff3299bda (diff)
downloadbrew-c276a44ebae578bdbd3048916f2a90ae20e72dd1.tar.bz2
bump-formula-pr: check for URL presence.
If it's not there, produce a nicer error. Fixes #1805.
-rw-r--r--Library/Homebrew/dev-cmd/bump-formula-pr.rb2
1 files changed, 2 insertions, 0 deletions
diff --git a/Library/Homebrew/dev-cmd/bump-formula-pr.rb b/Library/Homebrew/dev-cmd/bump-formula-pr.rb
index 8fdbd97b6..68bf32d0b 100644
--- a/Library/Homebrew/dev-cmd/bump-formula-pr.rb
+++ b/Library/Homebrew/dev-cmd/bump-formula-pr.rb
@@ -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"