mirror of
https://git.proxmox.com/git/proxmox-offline-mirror
synced 2025-08-15 19:47:39 +00:00
mirror: use xz multi decoder
Ubuntu's Packages.xz files require it, because they contain multiple streams. Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
This commit is contained in:
parent
5b230fb998
commit
bb1685a070
@ -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[..]
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user