浏览代码

Add comment.

Martijn Laan 5 月之前
父节点
当前提交
77b8b311fe
共有 2 个文件被更改,包括 2 次插入0 次删除
  1. 1 0
      Projects/Src/Compiler.SetupCompiler.pas
  2. 1 0
      Projects/Src/Setup.Install.pas

+ 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);