Преглед изворни кода

Tweak extractarchive logging.

Martijn Laan пре 3 месеци
родитељ
комит
17a85b56fc
2 измењених фајлова са 3 додато и 1 уклоњено
  1. 1 1
      Projects/Src/Compression.SevenZipDLLDecoder.pas
  2. 2 0
      Projects/Src/Setup.Install.pas

+ 1 - 1
Projects/Src/Compression.SevenZipDLLDecoder.pas

@@ -1071,7 +1071,7 @@ begin
 
 
         { Log start of extraction }
         { Log start of extraction }
         if ExtractIntent then begin
         if ExtractIntent then begin
-          LogFmt('Extracting archive %s to %s. Recurse subdirs? %s', [ArchiveFilename,
+          LogFmt('Start extracting archive %s to %s. Recurse subdirs? %s', [ArchiveFilename,
             RemoveBackslashUnlessRoot(DestDir), SYesNo[RecurseSubDirs]]);
             RemoveBackslashUnlessRoot(DestDir), SYesNo[RecurseSubDirs]]);
           var Solid: Boolean;
           var Solid: Boolean;
           if GetProperty(State.InArchive, $FFFF, kpidSolid, Solid) and Solid then
           if GetProperty(State.InArchive, $FFFF, kpidSolid, Solid) and Solid then

+ 2 - 0
Projects/Src/Setup.Install.pas

@@ -2020,6 +2020,8 @@ var
           finally
           finally
             ArchiveFindClose(H);
             ArchiveFindClose(H);
           end;
           end;
+
+          Log('Successfully extracted the archive.');
         end;
         end;
       finally
       finally
         ISSigVerifySourceF.Free;
         ISSigVerifySourceF.Free;