From 466d6589095e8704fb29d7cda834f12a72f48bf5 Mon Sep 17 00:00:00 2001 From: "Vladimir.Orlov" Date: Thu, 2 Mar 2017 09:25:16 +0300 Subject: [PATCH] Patches: corrected behaviour in case there are few files with the same name and checksums. --- updater/src/com/intellij/updater/DiffCalculator.java | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/updater/src/com/intellij/updater/DiffCalculator.java b/updater/src/com/intellij/updater/DiffCalculator.java index 43ba9c83671f..cc8a5b540a9f 100644 --- a/updater/src/com/intellij/updater/DiffCalculator.java +++ b/updater/src/com/intellij/updater/DiffCalculator.java @@ -52,7 +52,7 @@ public class DiffCalculator { String source = byContent.get(create.getValue()); boolean move = true; - if (source == null) { + if (source == null || create.getKey().startsWith("jre")) { List sameName = byName.get(new File(create.getKey()).getName()); if (sameName != null) { source = findBestCandidateForMove(sameName, create.getKey());