Make debug! message more consistent

in `extract_compressed_from_readable`

Signed-off-by: Jiahao XU <Jiahao_XU@outlook.com>
This commit is contained in:
Jiahao XU 2022-06-12 22:38:00 +10:00
parent 225cf74cd9
commit 94c77c32b4
No known key found for this signature in database
GPG key ID: 591C0B03040416D6

View file

@ -81,21 +81,21 @@ pub(super) fn extract_compressed_from_readable<V: TarEntriesVisitor, R: BufRead>
}
Tgz => {
// Extract to install dir
debug!("Decompressing from tgz archive {msg}");
debug!("Decompressing from tgz archive: {msg}");
let tar = GzDecoder::new(dat);
untar(tar, op)?;
}
Txz => {
// Extract to install dir
debug!("Decompressing from txz archive {msg}");
debug!("Decompressing from txz archive: {msg}");
let tar = XzDecoder::new(dat);
untar(tar, op)?;
}
Tzstd => {
// Extract to install dir
debug!("Decompressing from tzstd archive {msg}");
debug!("Decompressing from tzstd archive: {msg}");
// The error can only come from raw::Decoder::with_dictionary
// as of zstd 0.10.2 and 0.11.2, which is specified