Archived
3
0

Automated patching.

This commit is contained in:
Luka Vandervelden 2019-09-14 18:43:15 +02:00
parent 5bfaacfd09
commit 24de93ef3f

View File

@ -243,6 +243,17 @@ class Package::Recipe
]
)
raise ExtractionError.new self, url unless status.success?
elsif basename.match /\.patch$/
@context.info "Applying '#{url.filename}'"
status = @context.run(
"#{building_directory}/#{dirname}",
"patch", [
"#{@context.sources_directory}/#{url.filename}"
]
)
raise ExtractionError.new self, url unless status.success?
else
@context.info "Copying '#{url.filename}'"