Improve reporting of overwrites when installing files
authorJacob Bachmeyer <jcb@gnu.org>
Wed, 16 Nov 2022 01:01:46 +0000 (19:01 -0600)
committerJacob Bachmeyer <jcb@gnu.org>
Wed, 16 Nov 2022 01:01:46 +0000 (19:01 -0600)
The reported name is now the logical name in the published tree instead of
the actual name on the server's filesystem.

gatekeeper.pl

index 9d134cf2ccf551ba2e11dde876c13d30955c2c47..85dd8cff9f112743ba6c82759140254a49c07cce 100755 (executable)
@@ -2466,7 +2466,7 @@ sub install_files {
   my $stage_upload = File::Spec->catfile($Stage_dir, $upload_file);
   my $stage_signature = File::Spec->catfile($Stage_dir, $sig_file);
 
-  my $pubfinal = File::Spec::Unix->catfile(@directory, $install_as);
+  my $pubfinal = File::Spec::Unix->catfile(pub => @directory, $install_as);
   my $final_upload = File::Spec->catfile
     ($Public_dir, @directory, $install_as);
   my $final_signature = File::Spec->catfile
@@ -2481,9 +2481,9 @@ sub install_files {
     if ($header->{options}{replace}) {
       archive_filepair([File::Spec::Unix->splitdir($header->{directory})],
                       $upload_file);
-      ftp_syslog('info', "overwrote $final_upload with uploaded version");
+      ftp_syslog('info', "overwrote $pubfinal with uploaded version");
       $notification_str .=
-       "Archived and overwrote $final_upload with uploaded version\n";
+       "Archived and overwrote $pubfinal with uploaded version\n";
     } else {
       throw processing_error => command => $step,
        summary => $pubfinal." exists and 'replace' was not selected";