aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Homebrew/cmd/fetch.rb
diff options
context:
space:
mode:
Diffstat (limited to 'Library/Homebrew/cmd/fetch.rb')
-rw-r--r--Library/Homebrew/cmd/fetch.rb3
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