our $Stage_dir; our $Public_dir;
my @directory = File::Spec::Unix->splitdir($header->{directory});
- my $destdir = File::Spec->catdir
- ($Public_dir, @directory);
my $install_as = $step->[1];
my $upload_file = $header->{filename};
my $stage_upload = File::Spec->catfile($Stage_dir, $upload_file);
my $stage_signature = File::Spec->catfile($Stage_dir, $sig_file);
- my $final_upload = File::Spec->catfile($destdir, $install_as);
- my $final_signature = File::Spec->catfile($destdir, $install_as.'.sig');
+ my $pubfinal = File::Spec::Unix->catfile(@directory, $install_as);
+ my $final_upload = File::Spec->catfile
+ ($Public_dir, @directory, $install_as);
+ my $final_signature = File::Spec->catfile
+ ($Public_dir, @directory, $install_as.'.sig');
mkdir_p $Public_dir, @directory;
$notification_str .=
"Archived and overwrote $final_upload with uploaded version\n";
} else {
- fatal("This file exists: $final_upload, if you want to "
- ."replace the pair please use the 'replace' directive",1);
+ throw processing_error => command => $step,
+ summary => $pubfinal." exists and 'replace' was not selected";
}
}
# TODO: move CVE checks to VL phase
-re {^gatekeeper\[[0-9]+\]: \(Test\) \[EX\]\
- This file exists: [^\r\n]+} {
+ [^ ]+ exists and 'replace' was not selected} {
# from install_files, if target exists and replace not set
set A(install,target-file-exists) 1
exp_continue