diff --git a/core/src/main/java/com/merkle/oss/magnolia/setup/EnhancedModuleVersionHandler.java b/core/src/main/java/com/merkle/oss/magnolia/setup/EnhancedModuleVersionHandler.java index 9038c9a..277c28d 100644 --- a/core/src/main/java/com/merkle/oss/magnolia/setup/EnhancedModuleVersionHandler.java +++ b/core/src/main/java/com/merkle/oss/magnolia/setup/EnhancedModuleVersionHandler.java @@ -70,8 +70,8 @@ private Delta getInstallAndUpdateTasksDelta(final InstallContext installContext, return DeltaBuilder.install(forVersion, "setup-task install and update").addTasks(Stream.of( isInstall ? getInstallTasks(installContext, forVersion) : Stream.empty(), - isUpdate ? getInstallAndUpdateTasks(installContext, forVersion, null) : Stream.empty(), - (isInstall || isUpdate)? getUpdateTasks(installContext, forVersion, versionFrom) : Stream.empty() + isUpdate ? getUpdateTasks(installContext, forVersion, versionFrom) : Stream.empty(), + (isInstall || isUpdate)? getInstallAndUpdateTasks(installContext, forVersion, versionFrom) : Stream.empty() ).flatMap(Function.identity()).sorted(new DepdendsOnComparator()).toList()); }