CurlDownloadStrategy: remove "tarball_path" accessor

This information is already exposed as "cached_location", which is
common to all download strategies.
This commit is contained in:
Jack Nagel 2013-05-16 15:25:09 -05:00
parent e8997c8a5a
commit 65775e4318
2 changed files with 3 additions and 5 deletions

View File

@ -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

View File

@ -31,7 +31,6 @@ class AbstractDownloadStrategy
end
class CurlDownloadStrategy < AbstractDownloadStrategy
attr_reader :tarball_path
attr_accessor :local_bottle_path
def initialize name, package