Skip to content

Commit 51d7388

Browse files
committed
Merge branch 'master' into release
2 parents c53188f + 12393ef commit 51d7388

File tree

4 files changed

+234
-118
lines changed

4 files changed

+234
-118
lines changed

Assets/PatchKit Patcher/Scripts/AppUpdater/AppUpdater.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -55,7 +55,7 @@ public void Update(CancellationToken cancellationToken)
5555
}
5656
else
5757
{
58-
DebugLogger.LogWarningFormat("Strategy caused exception, being handled by fallback: {0}, Trace: {1}", ex.Message, ex.StackTrace);
58+
DebugLogger.LogWarningFormat("Strategy caused exception, being handled by fallback: {0}, Trace: {1}", ex, ex.StackTrace);
5959

6060
if (!TryHandleFallback(cancellationToken))
6161
{

Assets/PatchKit Patcher/Scripts/AppUpdater/Commands/InstallDiffCommand.cs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -252,9 +252,9 @@ private void ProcessModifiedFiles(string packageDirPath, string suffix,
252252
var entryName = _versionDiffSummary.ModifiedFiles[i];
253253

254254
if (!entryName.EndsWith("/"))
255-
{
255+
{
256256
DebugLogger.LogFormat("Patching {0} -> {1}", packageDirPath, entryName);
257-
PatchFile(entryName + suffix, packageDirPath);
257+
PatchFile(entryName, suffix, packageDirPath);
258258

259259
_localMetaData.RegisterEntry(entryName, _versionId);
260260
}
@@ -295,7 +295,7 @@ private void DeleteEmptyMacAppDirectories()
295295
}
296296
}
297297

298-
private void PatchFile(string fileName, string packageDirPath)
298+
private void PatchFile(string fileName, string suffix, string packageDirPath)
299299
{
300300
string filePath = _localData.Path.PathCombine(fileName);
301301

@@ -321,7 +321,7 @@ private void PatchFile(string fileName, string packageDirPath)
321321
try
322322
{
323323
var filePatcher = new FilePatcher(filePath,
324-
Path.Combine(packageDirPath, fileName), newFilePath);
324+
Path.Combine(packageDirPath, fileName + suffix), newFilePath);
325325
filePatcher.Patch();
326326

327327
FileOperations.Copy(newFilePath, filePath, true);

0 commit comments

Comments
 (0)