aboutsummaryrefslogtreecommitdiffstats
path: root/Library/Contributions
diff options
context:
space:
mode:
authorJack Nagel2013-05-16 15:25:09 -0500
committerJack Nagel2013-05-16 15:26:25 -0500
commit65775e43180964a3a3067ddbca15d59f1bd29c46 (patch)
tree6096460733e5fd291b83f7bdd2bdb8209d99a08c /Library/Contributions
parente8997c8a5ad1d146fdca26c736393e3bbfe7faf4 (diff)
downloadbrew-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-xLibrary/Contributions/cmd/brew-mirror-check.rb7
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