aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Formula/nginx.rb
diff options
context:
space:
mode:
authorAdam Vandenberg2010-07-09 12:40:41 -0700
committerAdam Vandenberg2010-07-16 09:09:39 -0700
commit511d309374f693231938eecfda7202c2a6ce3e4d (patch)
tree08783d129a434ec5977ef27eae3083f5f932b53c /Library/Formula/nginx.rb
parent418902f7beabf6cf724c9e84cf5294aed5fc376e (diff)
downloadhomebrew-511d309374f693231938eecfda7202c2a6ce3e4d.tar.bz2
Add ARGV.build_head? and use it.
This allows both "--HEAD" and "-H" to be used consistently, which was the intention in the first place.
Diffstat (limited to 'Library/Formula/nginx.rb')
-rw-r--r--Library/Formula/nginx.rb6
1 files changed, 3 insertions, 3 deletions
diff --git a/Library/Formula/nginx.rb b/Library/Formula/nginx.rb
index 064f4882c..776ec950a 100644
--- a/Library/Formula/nginx.rb
+++ b/Library/Formula/nginx.rb
@@ -5,10 +5,10 @@ class Nginx < Formula
head 'http://nginx.org/download/nginx-0.8.44.tar.gz'
homepage 'http://nginx.org/'
- unless (ARGV & ['--HEAD', '-H']).empty?
- @md5='7158c67ba2697f7d469aa7b17bef202f'
+ if ARGV.build_head?
+ md5 'b6e175f969d03a4d3c5643aaabc6a5ff'
else
- @md5='b6e175f969d03a4d3c5643aaabc6a5ff'
+ md5 '7158c67ba2697f7d469aa7b17bef202f'
end
depends_on 'pcre'