diff options
| author | Jack Nagel | 2012-04-02 21:03:34 -0500 | 
|---|---|---|
| committer | Jack Nagel | 2012-04-02 21:04:30 -0500 | 
| commit | f66238ba13d8a9dc115a2bf0ac50405a4dd373d9 (patch) | |
| tree | f365d889d3c2efbba90ffcabe553ba6d39ea17f5 /Library | |
| parent | e827884e04c666fad44e370647a6fe512867f3fc (diff) | |
| download | homebrew-f66238ba13d8a9dc115a2bf0ac50405a4dd373d9.tar.bz2 | |
fetch: don't display cached location twice
The download strategy will print the cached location if we've already
fetched it, so avoid printing redundant information.
Also just "puts" it instead of using a second `ohai` line.
Signed-off-by: Jack Nagel <jacknagel@gmail.com>
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/cmd/fetch.rb | 3 | 
1 files changed, 2 insertions, 1 deletions
| diff --git a/Library/Homebrew/cmd/fetch.rb b/Library/Homebrew/cmd/fetch.rb index 7d7a28459..bf7da0935 100644 --- a/Library/Homebrew/cmd/fetch.rb +++ b/Library/Homebrew/cmd/fetch.rb @@ -26,6 +26,7 @@ module Homebrew extend self          FileUtils.rm_rf where_to if File.exist? where_to        end +      already_downloaded = f.cached_download.exist?        the_tarball, _ = f.fetch        next unless the_tarball.kind_of? Pathname @@ -35,7 +36,7 @@ module Homebrew extend self        previous_sha1 = f.instance_variable_get(:@sha1).to_s.downcase        previous_sha2 = f.instance_variable_get(:@sha256).to_s.downcase unless bottle -      ohai "Downloaded to: #{the_tarball}" +      puts "Downloaded to: #{the_tarball}" unless already_downloaded        puts "MD5:  #{the_tarball.md5}" unless bottle        puts "SHA1: #{the_tarball.sha1}"        puts "SHA256: #{the_tarball.sha2}" unless bottle | 
