Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 42 lines 1.3 kB view raw
1diff --git a/src/core/installer.cpp b/src/core/installer.cpp 2index 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> 10 11 namespace sfs = std::filesystem; 12 namespace pu = path_utils; 13@@ -35,6 +34,8 @@ void Installer::extract(const sfs::path& source_path, 14 } 15 catch(CompressionError& error) 16 { 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, 23 } 24 else 25 throw error; 26+ */ 27 } 28 for(const auto& dir_entry : sfs::recursive_directory_iterator(dest_path)) 29 { 30@@ -428,6 +430,7 @@ void Installer::extractWithProgress(const sfs::path& source_path, 31 sfs::current_path(working_dir); 32 } 33 34+/* 35 void Installer::extractRarArchive(const sfs::path& source_path, const sfs::path& dest_path) 36 { 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); 41 } 42+*/