Obsolete
/
packaging
Archived
3
0
Fork 0

Automated patching.

master
Luka Vandervelden 2019-09-14 18:43:15 +02:00
parent 5bfaacfd09
commit 24de93ef3f
1 changed files with 11 additions and 0 deletions

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? raise ExtractionError.new self, url unless status.success?
else else
@context.info "Copying '#{url.filename}'" @context.info "Copying '#{url.filename}'"