python312Packages.llama-index: 0.12.9 -> 0.12.9.post1 (#371957)
[NixPkgs.git] / pkgs / by-name / li / limo / remove-unrar.patch
blob7e6373eecf28ce56c962d86989d1504dcc55cada
1 diff --git a/src/core/installer.cpp b/src/core/installer.cpp
2 index ea384a8..aab8be0 100644
3 --- a/src/core/installer.cpp
4 +++ b/src/core/installer.cpp
5 @@ -7,7 +7,6 @@
6 #include <ranges>
7 #include <regex>
8 #define _UNIX
9 -#include <dll.hpp>
11 namespace sfs = std::filesystem;
12 namespace pu = path_utils;
13 @@ -35,6 +34,8 @@ void Installer::extract(const sfs::path& source_path,
15 catch(CompressionError& error)
17 + throw error;
18 + /*
19 std::string extension = source_path.extension().string();
20 std::transform(extension.begin(),
21 extension.end(),
22 @@ -48,6 +49,7 @@ void Installer::extract(const sfs::path& source_path,
24 else
25 throw error;
26 + */
28 for(const auto& dir_entry : sfs::recursive_directory_iterator(dest_path))
30 @@ -428,6 +430,7 @@ void Installer::extractWithProgress(const sfs::path& source_path,
31 sfs::current_path(working_dir);
34 +/*
35 void Installer::extractRarArchive(const sfs::path& source_path, const sfs::path& dest_path)
37 log(Log::LOG_DEBUG, "Using fallback rar extraction");
38 @@ -459,3 +462,4 @@ void Installer::extractRarArchive(const sfs::path& source_path, const sfs::path&
39 throw CompressionError("Failed to extract RAR archive.");
40 RARCloseArchive(hArcData);
42 +*/