aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
Diffstat (limited to 'Library')
-rw-r--r--Library/Homebrew/formula.rb6
1 files changed, 5 insertions, 1 deletions
diff --git a/Library/Homebrew/formula.rb b/Library/Homebrew/formula.rb
index 5c082e490..ad975ef00 100644
--- a/Library/Homebrew/formula.rb
+++ b/Library/Homebrew/formula.rb
@@ -129,7 +129,11 @@ class AbstractFormula
tgz=Pathname.new(fetch()).realpath
begin
md5=`md5 -q "#{tgz}"`.strip
- raise "MD5 mismatch: #{md5}" unless @md5 and md5 == @md5.downcase
+ if @md5 and not @md5.empty?
+ raise "MD5 mismatch: #{md5}" unless md5 == @md5.downcase
+ else
+ ohai "Warning: Formula does not provide an MD5 hash."
+ end
# we make an additional subdirectory so know exactly what we are
# recursively deleting later