mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-18 09:34:34 +07:00
updater: do not skip create optional actions for jre64 if patch apply to installation bundled jre64
patch script: put updater log in artifacts IDEA-208331 Patch script does not correctly prepare patches with files like *.1
This commit is contained in:
@@ -362,9 +362,13 @@ public class Patch {
|
||||
return new PatchFileCreator.ApplicationResult(false, appliedActions, t);
|
||||
}
|
||||
|
||||
File jre64 = new File(toDir.getAbsolutePath() + "/jre64");
|
||||
for (File directory : createdDirectories) {
|
||||
File[] children = directory.listFiles();
|
||||
if (children != null && createdOptionalFiles.containsAll(Arrays.asList(children))) {
|
||||
if (children != null &&
|
||||
(!directory.getAbsolutePath().contains("jre64") ||
|
||||
directory.getAbsolutePath().contains("jre64") && !jre64.exists()) &&
|
||||
createdOptionalFiles.containsAll(Arrays.asList(children))) {
|
||||
Runner.logger().info("Pruning empty directory: " + directory);
|
||||
try {
|
||||
Utils.delete(directory);
|
||||
|
||||
Reference in New Issue
Block a user