From 2838ed6a0256880981a5019bd8ca3fbae7e0c992 Mon Sep 17 00:00:00 2001 From: Jacob Bachmeyer Date: Tue, 8 Aug 2023 18:48:57 -0500 Subject: [PATCH] Tidy message generation when replacing a file --- gatekeeper.pl | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gatekeeper.pl b/gatekeeper.pl index f649015..bdd9175 100755 --- a/gatekeeper.pl +++ b/gatekeeper.pl @@ -1726,8 +1726,6 @@ Install a file into the managed tree as DESTINATION_FILENAME. throw processing_error => command => $step, summary => $pubfinal." exists and 'replace' was not selected"; } - $packet->add_notice - ("Archived and overwrote $pubfinal with uploaded version"); } } @@ -1759,6 +1757,8 @@ Install a file into the managed tree as DESTINATION_FILENAME. # previous validation has ensured that the 'replace' option is set ::archive_filepair($directory, $upload_file); ftp_syslog info => "overwriting $pubfinal with uploaded version"; + $packet->add_notice + ("Archived and overwrote $pubfinal with uploaded version"); } # Do atomic rename (if the system crashes between or during the mv's, -- 2.25.1