Class: LegacyPatch

Inherits:
ExternalPatch show all
Defined in:
Library/Homebrew/patch.rb

Overview

Legacy patches have no checksum and are not cached

Instance Attribute Summary

Attributes inherited from ExternalPatch

#resource, #strip

Instance Method Summary collapse

Methods inherited from ExternalPatch

#external?, #inspect, #owner=

Constructor Details

#initialize(strip, url) ⇒ LegacyPatch

Returns a new instance of 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

#applyObject



180
181
182
183
184
# File 'Library/Homebrew/patch.rb', line 180

def apply
  super
ensure
  clear_cache
end

#fetchObject



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)
  # no-op
end