diff options
| author | Jack Nagel | 2013-05-16 15:25:09 -0500 |
|---|---|---|
| committer | Jack Nagel | 2013-05-16 15:26:25 -0500 |
| commit | 65775e43180964a3a3067ddbca15d59f1bd29c46 (patch) | |
| tree | 6096460733e5fd291b83f7bdd2bdb8209d99a08c /Library/Contributions | |
| parent | e8997c8a5ad1d146fdca26c736393e3bbfe7faf4 (diff) | |
| download | brew-65775e43180964a3a3067ddbca15d59f1bd29c46.tar.bz2 | |
CurlDownloadStrategy: remove "tarball_path" accessor
This information is already exposed as "cached_location", which is
common to all download strategies.
Diffstat (limited to 'Library/Contributions')
| -rwxr-xr-x | Library/Contributions/cmd/brew-mirror-check.rb | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/Library/Contributions/cmd/brew-mirror-check.rb b/Library/Contributions/cmd/brew-mirror-check.rb index ed8e5364f..4fa0defa0 100755 --- a/Library/Contributions/cmd/brew-mirror-check.rb +++ b/Library/Contributions/cmd/brew-mirror-check.rb @@ -9,14 +9,13 @@ class Formula # Force the downloader to attempt the download by removing the tarball if # it is allready cached. - tarball_path = downloader.tarball_path - tarball_path.unlink if tarball_path.exist? + cached_download.unlink if cached_download.exist? - fetched = downloader.fetch + downloader.fetch rescue StandardError opoo "Failed to fetch from URL: #{url}" else - verify_download_integrity fetched if fetched.kind_of? Pathname + verify_download_integrity(cached_download) if cached_download.file? end end |
