Only clean up external patches.
This commit is contained in:
parent
46f531b2b1
commit
d10ba2b1c9
@ -84,7 +84,7 @@ module CleanupRefinement
|
||||
resource_name = basename.to_s[/\A.*?\-\-(.*?)\-\-?(?:#{Regexp.escape(version)})/, 1]
|
||||
|
||||
if resource_name == "patch"
|
||||
patch_hashes = formula.stable&.patches&.map(&:resource)&.map(&:version)
|
||||
patch_hashes = formula.stable&.patches&.select(&:external?)&.map(&:resource)&.map(&:version)
|
||||
return true unless patch_hashes&.include?(Checksum.new(:sha256, version.to_s))
|
||||
elsif resource_name && resource_version = formula.stable&.resources&.dig(resource_name)&.version
|
||||
return true if resource_version != version
|
||||
|
Loading…
x
Reference in New Issue
Block a user