# SIG_FILE and UPLOAD_FILE are good.
#
sub check_files {
+ my $header = shift;
my $files = shift;
my %info = @_;
# subdir). When the destination file exists, archive it automatically first.
#
sub install_files {
+ my $header = shift;
my $files = shift;
my %info = @_;
my $destdir = "$destfinal/$header->{directory}";
foreach my $step (@{$oplist}[1..$#$oplist]) { # skip the header
if ($step->[0] eq 'install') {
- check_files($files,%originfo);
- install_files($files,%originfo);
+ check_files($header, $files, %originfo);
+ install_files($header, $files, %originfo);
} elsif ($step->[0] eq 'symlink') {
my $target = $step->[1];
my $linkname = $step->[2];