fix: Run code-block if executablePatches does not yet contain patch

This commit is contained in:
oSumAtrIX 2023-09-13 03:06:19 +02:00
parent 4e7811ea07
commit 1d7aeca696
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4

View File

@ -74,7 +74,7 @@ class Patcher(
} }
// Add all patches and their dependencies to the context. // Add all patches and their dependencies to the context.
for (patch in patches) context.executablePatches.putIfAbsent(patch::class, patch) ?: { for (patch in patches) context.executablePatches.putIfAbsent(patch::class, patch) ?: run {
context.allPatches[patch::class] = patch context.allPatches[patch::class] = patch
patch.dependencies?.forEach { it.putDependenciesRecursively() } patch.dependencies?.forEach { it.putDependenciesRecursively() }