sub target_package;
sub target_directory;
- sub target_filename;
- sub target_filepair; # always FILE, FILE.sig, in that order
sub auth_keyrings;
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_package { (shift)->{oplist}->[0][1]->{package} }
sub auth_keyrings {
sub has_uploaded_file { return 1 }
+ sub upload_filename { (shift)->{oplist}->[0][1]->{filename} }
+
sub target_filepair {
- my $filename = (shift)->target_filename;
+ my $filename = (shift)->upload_filename;
return $filename, $filename.'.sig';
}
throw signature_error => sig_info => $fsig_info,
summary =>
- 'gpg verify of upload file ('.$self->target_filename.') failed'
+ 'gpg verify of upload file ('.$self->upload_filename.') failed'
if $fsig_info->{exitcode} != 0 || defined $fsig_info->{TILT};
throw signature_error => sig_info => $fsig_info,
summary => "gpg verification problem: could not extract timestamp"
# If the upload carries a file, check it for known Automake CVE issues.
check_automake_vulnerabilities
- (File::Spec->catfile(CONF_DIR_Scratch, $packet->target_filename))
+ (File::Spec->catfile(CONF_DIR_Scratch, $packet->upload_filename))
if $packet->has_uploaded_file;
# If the upload installs a file, check if the final file exists; if so,
# Do we need a subdirectory on CONF_DIR_Staging as well? Can't quite
# picture when we'd have a collision, so skip that for now.
move_filepair
- (CONF_DIR_Scratch, $packet->target_filename, CONF_DIR_Staging);
+ (CONF_DIR_Scratch, $packet->upload_filename, CONF_DIR_Staging);
}
foreach my $step (@{$oplist}[1..$#$oplist]) { # skip the header
if ($step->[0] eq 'install') {
execute_install($packet->target_directory, $step,
- $packet->target_filename);
+ $packet->upload_filename);
} elsif ($step->[0] eq 'symlink') {
execute_symlink($packet->target_directory, $step);
} elsif ($step->[0] eq 'rmsymlink') {