From f14b1fcfffa8c2e9ceb4f33298119809ae4fa4e8 Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Sat, 10 Mar 2012 10:02:05 -0800 Subject: roll back stricter version check --- Library/Homebrew/formula.rb | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'Library') diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb index 4c0634d06..26b25cbf7 100644 --- a/Library/Homebrew/formula.rb +++ b/Library/Homebrew/formula.rb @@ -52,7 +52,9 @@ class Formula set_instance_variable 'version' # Otherwise detect the version from the URL @version ||= @spec_to_use.detect_version - validate_variable :version + # Only validate if a version was set; GitHubGistFormula needs to get + # the URL to determine the version + validate_variable :version if @version CHECKSUM_TYPES.each { |type| set_instance_variable type } -- cgit v1.2.3