From 5ffc42a4f880d19b3c7c7592ff67079e5598dcdc Mon Sep 17 00:00:00 2001 From: Adam Vandenberg Date: Wed, 7 Jul 2010 21:31:55 -0700 Subject: brew fetch shouldn't try to checksum VCS checkouts Fixes #1802 --- Library/Contributions/examples/brew-fetch.rb | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'Library') diff --git a/Library/Contributions/examples/brew-fetch.rb b/Library/Contributions/examples/brew-fetch.rb index aadb91333..04573669f 100755 --- a/Library/Contributions/examples/brew-fetch.rb +++ b/Library/Contributions/examples/brew-fetch.rb @@ -10,6 +10,8 @@ ARGV.formulae.each do |f| end the_tarball = f.downloader.fetch - md5 = the_tarball.md5 - puts "MD5 is #{md5}" + if the_tarball.kind_of? Pathname + md5 = the_tarball.md5 + puts "MD5 is #{md5}" + end end -- cgit v1.2.3