sub file_name_stem { (shift)->{stem} }
sub has_uploaded_file { return 0 }
+ sub allow_overwrite { return 0 }
sub target_directory;
sub target_filename;
::validate_directive($self, $self->{oplist});
}
- sub target_directory { (shift)->{oplist}->[0][1]->{directory} }
- sub target_filename { (shift)->{oplist}->[0][1]->{filename} }
+ sub allow_overwrite { (shift)->{oplist}->[0][1]->{options}{replace} }
+ sub target_directory { (shift)->{oplist}->[0][1]->{directory} }
+ sub target_filename { (shift)->{oplist}->[0][1]->{filename} }
sub target_filepair {
my $filename = (shift)->target_filename;
(CONF_DIR_Public, @directory, $install_as.'.sig');
if (-e $final_signature || -e $final_upload) {
- unless ($op_header->{options}{replace}) {
+ unless ($packet->allow_overwrite) {
throw processing_error => command => $step,
summary => $pubfinal." exists and 'replace' was not selected";
}