File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -177,9 +177,13 @@ sub die_with_sample {
177
177
mkdir $dir unless -d $dir ;
178
178
179
179
# Set up the generated DevelPatchPerl.patch
180
- {
180
+ if ( $patch ) {
181
181
open my $fh , " >" , " $dir /DevelPatchPerl.patch" ;
182
182
print $fh $patch ;
183
+ $output =~ s !\{\{ docker_copy_perl_patch\}\} ! COPY *.patch /usr/src/perl/! mg ;
184
+ }
185
+ else {
186
+ $output =~ s !\{\{ docker_copy_perl_patch\}\} ! # No DevelPatchPerl.patch generated! mg ;
183
187
}
184
188
185
189
$release -> {run_tests } //= " parallel" ;
@@ -285,7 +289,7 @@ =head1 DESCRIPTION
285
289
FROM {{image}}:{{tag}}
286
290
LABEL maintainer="Peter Martini <PeterCMartini@GMail.com>, Zak B. Elep <zakame@cpan.org>"
287
291
288
- COPY *.patch /usr/src/perl/
292
+ {{docker_copy_perl_patch}}
289
293
WORKDIR /usr/src/perl
290
294
291
295
RUN {{docker_slim_run_install}} \
You can’t perform that action at this time.
0 commit comments