From cc3aa0aa609067358a098eca2cd21b7882c68c54 Mon Sep 17 00:00:00 2001 From: Graham Date: Sat, 29 Jul 2023 23:25:01 +0100 Subject: [PATCH] Preserve timestamps in unpack200 command Signed-off-by: Graham --- .../org/openrs2/compress/cli/pack200/Unpack200Command.kt | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/compress-cli/src/main/kotlin/org/openrs2/compress/cli/pack200/Unpack200Command.kt b/compress-cli/src/main/kotlin/org/openrs2/compress/cli/pack200/Unpack200Command.kt index d5df0b75cd..8dd546092b 100644 --- a/compress-cli/src/main/kotlin/org/openrs2/compress/cli/pack200/Unpack200Command.kt +++ b/compress-cli/src/main/kotlin/org/openrs2/compress/cli/pack200/Unpack200Command.kt @@ -7,7 +7,7 @@ import com.github.ajalt.clikt.parameters.types.defaultStdout import com.github.ajalt.clikt.parameters.types.inputStream import com.github.ajalt.clikt.parameters.types.outputStream import org.openrs2.compress.gzip.Gzip -import org.openrs2.util.io.DeterministicJarOutputStream +import java.util.jar.JarOutputStream import java.util.jar.Pack200 public class Unpack200Command : CliktCommand(name = "unpack200") { @@ -16,7 +16,7 @@ public class Unpack200Command : CliktCommand(name = "unpack200") { override fun run() { Gzip.createHeaderlessInputStream(input).use { gzipInput -> - DeterministicJarOutputStream(output).use { jarOutput -> + JarOutputStream(output).use { jarOutput -> Pack200.newUnpacker().unpack(gzipInput, jarOutput) } }