add: proper console output

Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
oSumAtrIX 2022-05-06 03:09:00 +02:00
parent f4a7860bb3
commit 59c423bea0
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
1 changed files with 6 additions and 5 deletions

View File

@ -16,10 +16,10 @@ internal class Patcher {
// add patches, but filter incompatible or excluded patches
patcher.addPatchesFiltered()
// apply patches
for (patchResult in patcher.applyPatches {
println("Applying: $it")
for ((meta, result) in patcher.applyPatches {
println("Applying $it.")
}) {
println(patchResult)
println("Applied ${meta.name}. The result was $result.")
}
// write output file
@ -71,7 +71,8 @@ internal class Patcher {
it == packageVersion
}
}) {
// TODO: report to stdout
println("Skipping ${patch.metadata.name} due to incompatibility with current package $packageName.")
return@patch
}
@ -79,7 +80,7 @@ internal class Patcher {
return@patch
}
// TODO: report to stdout
println("Adding ${patch.metadata.name}.")
includedPatches.add(patch)
}