From b17dd32d60546d9b4c8308636845022a6cba1fb2 Mon Sep 17 00:00:00 2001 From: Ben Grant Date: Sun, 15 Sep 2024 20:11:49 -0700 Subject: [PATCH 1/2] fix(-A): detect more compression formats --- rust/aura-core/src/cache.rs | 14 +++++++++++++- 1 file changed, 13 insertions(+), 1 deletion(-) diff --git a/rust/aura-core/src/cache.rs b/rust/aura-core/src/cache.rs index 218c32e77..26dbb9ab7 100644 --- a/rust/aura-core/src/cache.rs +++ b/rust/aura-core/src/cache.rs @@ -264,7 +264,19 @@ pub fn missing_tarballs<'a>( pub fn is_package(path: &Path) -> bool { path.to_str() .map(|p| { - p.ends_with(".pkg.tar.zst") || p.ends_with(".pkg.tar.xz") || p.ends_with(".pkg.tar") + [ + ".pkg.tar.gz", + ".pkg.tar.bz2", + ".pkg.tar.xz", + ".pkg.tar.zst", + ".pkg.tar.lrz", + ".pkg.tar.lzo", + ".pkg.tar.Z", + ".pkg.tar.lz4", + ".pkg.tar.lz", + ] + .iter() + .any(|ext| p.ends_with(ext)) }) .unwrap_or(false) } From 55dc97df0e55abebe14073c25c99903646989ec3 Mon Sep 17 00:00:00 2001 From: Ben Grant Date: Sun, 15 Sep 2024 20:12:52 -0700 Subject: [PATCH 2/2] restore uncompressed package support --- rust/aura-core/src/cache.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/rust/aura-core/src/cache.rs b/rust/aura-core/src/cache.rs index 26dbb9ab7..b268239d2 100644 --- a/rust/aura-core/src/cache.rs +++ b/rust/aura-core/src/cache.rs @@ -274,6 +274,7 @@ pub fn is_package(path: &Path) -> bool { ".pkg.tar.Z", ".pkg.tar.lz4", ".pkg.tar.lz", + ".pkg.tar", ] .iter() .any(|ext| p.ends_with(ext))