fix(patches): Only apply patches as part of archive extraction

This commit is contained in:
2020-04-26 22:21:22 +01:00
parent fb93beb22c
commit c4768f4c3a

View File

@@ -29,7 +29,6 @@ class Build
tarball = download_tarball(meta[:sha])
source = extract_tarball(tarball, patches(options))
patches(options).each { |patch| apply_patch(patch, source) }
app = compile_source(source)
LibEmbedder.new(app, brew_dir, os.version, extra_libs).embed
@@ -98,6 +97,8 @@ class Build
result = run_cmd('tar', '-xzf', filename, '-C', source_dir)
raise 'ERROR: Tarball extraction failed.' unless result
patches.each { |patch| apply_patch(patch, target) }
target
end