Skip to content

Commit

Permalink
fix(-A): detect more compression formats
Browse files Browse the repository at this point in the history
  • Loading branch information
190n committed Sep 16, 2024
1 parent cdebca1 commit b17dd32
Showing 1 changed file with 13 additions and 1 deletion.
14 changes: 13 additions & 1 deletion rust/aura-core/src/cache.rs
Original file line number Diff line number Diff line change
Expand Up @@ -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)
}
Expand Down

0 comments on commit b17dd32

Please sign in to comment.