Răsfoiți Sursa

Add comment.

Martijn Laan 4 luni în urmă
părinte
comite
77b8b311fe

+ 1 - 0
Projects/Src/Compiler.SetupCompiler.pas

@@ -7002,6 +7002,7 @@ var
         try
           var ExpectedFileHash: TSHA256Digest;
           if floISSigVerify in FLExtraInfo.Flags then begin
+            { See Setup.Install's CopySourceFileToDestFile for similar code }
             if Length(ISSigKeys) = 0 then { shouldn't fail: flag stripped already }
               AbortCompileFmt(SCompilerCompressInternalError, ['Length(ISSigKeys) = 0']);
             const SigFilename = FileLocationEntryFilenames[I] + '.issig';

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

@@ -277,6 +277,7 @@ var
 begin
   var ExpectedFileHash: TSHA256Digest;
   if ISSigVerify then begin
+    { See Compiler.SetupCompiler's TSetupCompiler.Compile for similar code }
     if not NewFileExists(ISSigFilename) then
       ISSigVerifyError(ISSigMissingFile);
     const SigText = ISSigLoadTextFromFile(ISSigFilename);