Skip to content
Snippets Groups Projects
Commit 052d6077 authored by Mike McQuaid's avatar Mike McQuaid Committed by GitHub
Browse files

Merge pull request #1859 from MikeMcQuaid/brew-create-null-version

create: handle null versions.
parents 85a3940d feea90c0
No related branches found
No related tags found
No related merge requests found
......@@ -142,12 +142,10 @@ class FormulaCreator
def generate!
raise "#{path} already exists" if path.exist?
if version.nil?
if version.nil? || version.null?
opoo "Version cannot be determined from URL."
puts "You'll need to add an explicit 'version' to the formula."
end
if fetch? && version
elsif fetch?
r = Resource.new
r.url(url)
r.version(version)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment