Class: LegacyPatch

Inherits:
ExternalPatch show all
Defined in:
brew/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



169
170
171
172
173
# File 'brew/Library/Homebrew/patch.rb', line 169

def initialize(strip, url)
  super(strip)
  resource.url(url)
  resource.download_strategy = CurlDownloadStrategy
end

Instance Method Details

#applyObject



184
185
186
187
188
# File 'brew/Library/Homebrew/patch.rb', line 184

def apply
  super
ensure
  clear_cache
end

#fetchObject



175
176
177
178
# File 'brew/Library/Homebrew/patch.rb', line 175

def fetch
  clear_cache
  super
end

#verify_download_integrity(_fn) ⇒ Object



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

def verify_download_integrity(_fn)
  # no-op
end