aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/formula.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2012-03-10 10:02:05 -0800
committerAdam Vandenberg2012-03-10 10:02:05 -0800
commit715f808421c8df4e65d7f8bc95ea30eb496d4955 (patch)
tree7b9ace123939a7395ecedafe536055b054dbdac1 /Library/Homebrew/formula.rb
parentcef5429f9373526ed1fe523bcbbbb42b5cf65ea9 (diff)
downloadbrew-715f808421c8df4e65d7f8bc95ea30eb496d4955.tar.bz2
roll back stricter version check
Diffstat (limited to 'Library/Homebrew/formula.rb')
-rw-r--r--Library/Homebrew/formula.rb4
1 files changed, 3 insertions, 1 deletions
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 }