fix: don't print same patch multiple times

This commit is contained in:
Sculas 2022-09-08 22:19:53 +02:00
parent 240ab18eaf
commit f4b04698d8
No known key found for this signature in database
GPG Key ID: 1530BFF96D1EEB89
1 changed files with 4 additions and 1 deletions

View File

@ -227,7 +227,9 @@ internal object MainCommand : Runnable {
}
private fun printListOfPatches() {
val logged = mutableListOf<String>()
for (patchBundlePath in args.patchArgs?.patchBundles!!) for (patch in JarPatchBundle(patchBundlePath).loadPatches()) {
if (patch.patchName in logged) continue
for (compatiblePackage in patch.compatiblePackages!!) {
val packageEntryStr = buildString {
// Add package if flag is set
@ -250,8 +252,9 @@ internal object MainCommand : Runnable {
append("\t")
append(compatibleVersions)
}
}
logged.add(patch.patchName)
logger.info(packageEntryStr)
}
}