mirror of
https://github.com/revanced/revanced-cli.git
synced 2025-01-05 16:55:50 +01:00
fix: don't print same patch multiple times
This commit is contained in:
parent
240ab18eaf
commit
f4b04698d8
@ -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)
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user