Class: LegacyPatch
Overview
Legacy patches have no checksum and are not cached
Instance Attribute Summary
#resource, #strip
Instance Method Summary
collapse
#external?, #inspect, #owner=
Constructor Details
#initialize(strip, url) ⇒ LegacyPatch
165
166
167
168
169
|
# File 'Library/Homebrew/patch.rb', line 165
def initialize(strip, url)
super(strip)
resource.url(url)
resource.download_strategy = CurlDownloadStrategy
end
|
Instance Method Details
#apply ⇒ Object
180
181
182
183
184
|
# File 'Library/Homebrew/patch.rb', line 180
def apply
super
ensure
clear_cache
end
|
#fetch ⇒ Object
171
172
173
174
|
# File 'Library/Homebrew/patch.rb', line 171
def fetch
clear_cache
super
end
|
#verify_download_integrity(_fn) ⇒ Object
176
177
178
|
# File 'Library/Homebrew/patch.rb', line 176
def verify_download_integrity(_fn)
end
|