[pve-devel] [PATCH proxmox-offline-mirror 1/4] mirror: use xz multi decoder

Fabian Grünbichler f.gruenbichler at proxmox.com
Thu Sep 15 15:09:12 CEST 2022


Ubuntu's Packages.xz files require it, because they contain multiple
streams.

Signed-off-by: Fabian Grünbichler <f.gruenbichler at proxmox.com>
---
 src/mirror.rs | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/mirror.rs b/src/mirror.rs
index 78a493b..14b0c6a 100644
--- a/src/mirror.rs
+++ b/src/mirror.rs
@@ -277,7 +277,7 @@ fn fetch_index_file(
             &buf[..]
         }
         Some(CompressionType::Lzma) | Some(CompressionType::Xz) => {
-            let mut xz = xz2::read::XzDecoder::new(raw);
+            let mut xz = xz2::read::XzDecoder::new_multi_decoder(raw);
             xz.read_to_end(&mut buf)?;
             &buf[..]
         }
-- 
2.30.2






More information about the pve-devel mailing list