diff options
| author | Adam Vandenberg | 2010-07-07 21:31:55 -0700 |
|---|---|---|
| committer | Adam Vandenberg | 2010-07-07 21:31:55 -0700 |
| commit | 5ffc42a4f880d19b3c7c7592ff67079e5598dcdc (patch) | |
| tree | 835dc5acb1fe33a2883920bc253a538eff99b01d /Library | |
| parent | 78e8dcf852b892edd2670a5212811f05ef36b293 (diff) | |
| download | homebrew-5ffc42a4f880d19b3c7c7592ff67079e5598dcdc.tar.bz2 | |
brew fetch shouldn't try to checksum VCS checkouts
Fixes #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 |
