Sign Up
Log In
Log In
or
Sign Up
Places
All Projects
Status Monitor
Collapse sidebar
openSUSE:Leap:15.4:ARM
apache-commons-compress.28016
0003-Remove-Pack200-compressor.patch
Overview
Repositories
Revisions
Requests
Users
Attributes
Meta
File 0003-Remove-Pack200-compressor.patch of Package apache-commons-compress.28016
From 9937297a90b43a5e1238932eb8a07c44303056ed Mon Sep 17 00:00:00 2001 From: Marian Koncek <mkoncek@redhat.com> Date: Fri, 6 Aug 2021 13:42:40 +0200 Subject: [PATCH] Remove Pack200 compressor --- .../compress/compressors/CompressorStreamFactory.java | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/src/main/java/org/apache/commons/compress/compressors/CompressorStreamFactory.java b/src/main/java/org/apache/commons/compress/compressors/CompressorStreamFactory.java index eee7c31..de7da23 100644 --- a/src/main/java/org/apache/commons/compress/compressors/CompressorStreamFactory.java +++ b/src/main/java/org/apache/commons/compress/compressors/CompressorStreamFactory.java @@ -45,8 +45,6 @@ import org.apache.commons.compress.compressors.lz4.FramedLZ4CompressorOutputStre import org.apache.commons.compress.compressors.lzma.LZMACompressorInputStream; import org.apache.commons.compress.compressors.lzma.LZMACompressorOutputStream; import org.apache.commons.compress.compressors.lzma.LZMAUtils; -import org.apache.commons.compress.compressors.pack200.Pack200CompressorInputStream; -import org.apache.commons.compress.compressors.pack200.Pack200CompressorOutputStream; import org.apache.commons.compress.compressors.snappy.FramedSnappyCompressorInputStream; import org.apache.commons.compress.compressors.snappy.FramedSnappyCompressorOutputStream; import org.apache.commons.compress.compressors.snappy.SnappyCompressorInputStream; @@ -478,10 +476,6 @@ public class CompressorStreamFactory implements CompressorStreamProvider { return GZIP; } - if (Pack200CompressorInputStream.matches(signature, signatureLength)) { - return PACK200; - } - if (FramedSnappyCompressorInputStream.matches(signature, signatureLength)) { return SNAPPY_FRAMED; } @@ -592,7 +586,7 @@ public class CompressorStreamFactory implements CompressorStreamProvider { } if (PACK200.equalsIgnoreCase(name)) { - return new Pack200CompressorInputStream(in); + throw new CompressorException("Pack200 compression is not available in this build."); } if (SNAPPY_RAW.equalsIgnoreCase(name)) { @@ -673,7 +667,7 @@ public class CompressorStreamFactory implements CompressorStreamProvider { } if (PACK200.equalsIgnoreCase(name)) { - return new Pack200CompressorOutputStream(out); + throw new CompressorException("Pack200 compression is not available in this build."); } if (LZMA.equalsIgnoreCase(name)) { -- 2.31.1
Locations
Projects
Search
Status Monitor
Help
OpenBuildService.org
Documentation
API Documentation
Code of Conduct
Contact
Support
@OBShq
Terms
openSUSE Build Service is sponsored by
The Open Build Service is an
openSUSE project
.
Sign Up
Log In
Places
Places
All Projects
Status Monitor