aboutsummaryrefslogtreecommitdiffstats
path: root/Library
diff options
context:
space:
mode:
authorAdam Vandenberg2010-07-07 21:31:55 -0700
committerAdam Vandenberg2010-07-07 21:31:55 -0700
commit5ffc42a4f880d19b3c7c7592ff67079e5598dcdc (patch)
tree835dc5acb1fe33a2883920bc253a538eff99b01d /Library
parent78e8dcf852b892edd2670a5212811f05ef36b293 (diff)
downloadhomebrew-5ffc42a4f880d19b3c7c7592ff67079e5598dcdc.tar.bz2
brew fetch shouldn't try to checksum VCS checkouts
Fixes #1802
Diffstat (limited to 'Library')
-rwxr-xr-xLibrary/Contributions/examples/brew-fetch.rb6
1 files changed, 4 insertions, 2 deletions
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