Skip to content

Commit b47a10e

Browse files
Load version information from xz tarballs
1 parent d1b61c9 commit b47a10e

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/main.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -275,13 +275,13 @@ impl Context {
275275
for e in self.dl_dir().read_dir()? {
276276
let e = e?;
277277
let filename = e.file_name().into_string().unwrap();
278-
if !filename.starts_with("rustc-") || !filename.ends_with(".tar.gz") {
278+
if !filename.starts_with("rustc-") || !filename.ends_with(".tar.xz") {
279279
continue;
280280
}
281281
println!("looking inside {} for a version", filename);
282282

283283
let file = File::open(e.path())?;
284-
let reader = flate2::read::GzDecoder::new(file);
284+
let reader = xz2::read::XzDecoder::new(file);
285285
let mut archive = tar::Archive::new(reader);
286286

287287
let mut version_file = None;

0 commit comments

Comments
 (0)