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:
Fabian Grünbichler 2022-09-15 15:09:12 +02:00 committed by Thomas Lamprecht
parent 5b230fb998
commit bb1685a070

View File

@ -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[..]
}