diff options
| author | Adam Vandenberg | 2010-07-07 21:31:55 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-07-07 21:31:55 -0700 |
| commit | c2c0f681f5af398eb6485db41b0d89680b08c41c (patch) | |
| tree | d789afcc0877f91b3d727766b71d974be8bb2df4 /Library | |
| parent | 375f8094d379a0cff4deb57944e0dddb3abba95a (diff) | |
| download | brew-c2c0f681f5af398eb6485db41b0d89680b08c41c.tar.bz2 | |
brew fetch shouldn't try to checksum VCS checkouts
Fixes Homebrew/homebrew#1802
Diffstat (limited to 'Library')
| -rwxr-xr-x | Library/Contributions/examples/brew-fetch.rb | 6 |
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 |
