From 18e5628519639e32870f547305df7c55b376bb8e Mon Sep 17 00:00:00 2001 From: Cosimo Matteini Date: Sun, 27 Oct 2024 18:28:29 +0100 Subject: [PATCH] installer: add 7zip archive to FileType (#235) --- src/installer/file.rs | 1 + src/installer/install.rs | 1 + 2 files changed, 2 insertions(+) diff --git a/src/installer/file.rs b/src/installer/file.rs index 3056a3b..459a601 100644 --- a/src/installer/file.rs +++ b/src/installer/file.rs @@ -16,6 +16,7 @@ pub enum FileType { Debian, TarArchive(Compression), ZipArchive, + SevenZipArchive, CompressedFile(Compression), ExecutableFile, } diff --git a/src/installer/install.rs b/src/installer/install.rs index 538b862..7702a7b 100644 --- a/src/installer/install.rs +++ b/src/installer/install.rs @@ -38,6 +38,7 @@ fn find_installer_for( FileType::TarArchive(Compression::Xz) => TarArchiveInstaller::xz, FileType::TarArchive(Compression::Bz2) => TarArchiveInstaller::bz2, FileType::ZipArchive => ZipArchiveInstaller::run, + FileType::SevenZipArchive => todo!(), FileType::CompressedFile(Compression::Gz) => CompressedFileInstaller::gz, FileType::CompressedFile(Compression::Xz) => CompressedFileInstaller::xz, FileType::CompressedFile(Compression::Bz2) => CompressedFileInstaller::bz2,