diff options
| author | Jack Nagel | 2013-09-25 17:41:11 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-09-25 17:41:11 -0500 |
| commit | e9749ff2b0880a51877599a05ac58db6f12d3d8f (patch) | |
| tree | a3364f3b835149d7e3d2b73d8ff9c05813d73614 /Library | |
| parent | 6806de35d26f5d7190b5924fb20b90727b5653e5 (diff) | |
| download | homebrew-e9749ff2b0880a51877599a05ac58db6f12d3d8f.tar.bz2 | |
Move "Pouring" message to relevant download strategies
Diffstat (limited to 'Library')
| -rw-r--r-- | Library/Homebrew/download_strategy.rb | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/Library/Homebrew/download_strategy.rb b/Library/Homebrew/download_strategy.rb index 46d363496..865bde286 100644 --- a/Library/Homebrew/download_strategy.rb +++ b/Library/Homebrew/download_strategy.rb @@ -104,8 +104,6 @@ class CurlDownloadStrategy < AbstractDownloadStrategy end def stage - ohai "Pouring #{File.basename(tarball_path)}" if tarball_path.to_s.match bottle_regex - case tarball_path.compression_type when :zip with_system_path { quiet_safe_system 'unzip', {:quiet_flag => '-qq'}, tarball_path } @@ -244,6 +242,11 @@ class CurlBottleDownloadStrategy < CurlDownloadStrategy def tarball_path @tarball_path ||= HOMEBREW_CACHE/"#{name}-#{resource.version}#{ext}" end + + def stage + ohai "Pouring #{tarball_path.basename}" + super + end end # This strategy extracts local binary packages. @@ -252,6 +255,11 @@ class LocalBottleDownloadStrategy < CurlDownloadStrategy super formula.name, formula.active_spec @tarball_path = local_bottle_path end + + def stage + ohai "Pouring #{tarball_path.basename}" + super + end end # S3DownloadStrategy downloads tarballs from AWS S3. |
