Skip to content

Commit 1bd83a6

Browse files
committed
We provide .tar.xz now
1 parent c20b5a2 commit 1bd83a6

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

crates/lib/build.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ fn main() {
99
option_env!("PKGX_DIST_URL").unwrap_or("https://dist.pkgx.dev")
1010
};
1111

12-
let default_pantry_tarball_filename = "pantry.tgz";
12+
let default_pantry_tarball_filename = "pantry.tar.xz";
1313
let pantry_url =
1414
option_env!("PKGX_PANTRY_TARBALL_FILENAME").unwrap_or(default_pantry_tarball_filename);
1515

crates/lib/src/sync.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
use crate::{client::build_client, config::Config, pantry_db};
2-
use async_compression::tokio::bufread::GzipDecoder;
2+
use async_compression::tokio::bufread::XzDecoder;
33
use fs2::FileExt;
44
use futures::TryStreamExt;
55
use rusqlite::Connection;
@@ -63,7 +63,7 @@ async fn download_and_extract_pantry(url: &str, dest: &PathBuf) -> Result<(), Bo
6363
.into_async_read();
6464
let stream = stream.compat();
6565

66-
let decoder = GzipDecoder::new(stream);
66+
let decoder = XzDecoder::new(stream);
6767

6868
// Step 3: Extract the tar archive
6969
let mut archive = Archive::new(decoder);

0 commit comments

Comments
 (0)