mirror of
https://gitflic.ru/project/openide/openide.git
synced 2026-09-27 10:03:11 +07:00
Patches: skip update action for files which do not have root folder.
Example: patch for jre(jre64) which can be absent (not installed).
This commit is contained in:
@@ -321,6 +321,10 @@ public class Patch {
|
||||
if ((action instanceof CreateAction) &&
|
||||
!new File(toDir, action.getPath()).getParentFile().exists()) {
|
||||
Runner.logger().info("Create action: " + action.getPath() + " skipped. The parent folder is absent.");
|
||||
}
|
||||
else if ((action instanceof UpdateAction) &&
|
||||
!new File(toDir, action.getPath()).getParentFile().exists()) {
|
||||
Runner.logger().info("Update action: " + action.getPath() + " skipped. The parent folder is absent.");
|
||||
} else {
|
||||
appliedActions.add(action);
|
||||
action.apply(patchFile, backupDir, toDir);
|
||||
|
||||
Reference in New Issue
Block a user