Beispiel #1
0
 public async Task ApplyPatchAsync(string oldPath, string patchedPath, string patchPath)
 {
     try
     {
         await _patchSystem.RunCommandAsync(
             "-d",
             "-B" + SourceWindowSize.ToString(),
             "-f",
             "-s", oldPath,
             patchPath,
             patchedPath);
     }
     catch (CommandExecutionException e)
     {
         throw new PatchCreationException(e);
     }
 }
Beispiel #2
0
 public async Task CreatePatchAsync(string oldPath, string newPath, string patchPath)
 {
     try
     {
         await PatchSystem.RunCommandAsync(
             "-e",
             "-B" + SourceWindowSize.ToString(),
             "-" + CompressionLevel,
             "-S", SecondaryLevelCompression,
             "-s", oldPath,
             "-f",
             "-A", "",
             newPath,
             patchPath);
     }
     catch (CommandExecutionException e)
     {
         throw new PatchCreationException(e);
     }
 }