Clone of https://github.com/NixOS/nixpkgs.git (to stress-test knotserver)
at devShellTools-shell 33 lines 1.1 kB view raw
1From 1ff7f81740f9df7889f21ee3f779d90246890e4f Mon Sep 17 00:00:00 2001 2From: Emily <hello@emily.moe> 3Date: Mon, 25 Nov 2024 17:44:31 +0000 4Subject: [PATCH 4/4] Remove deprecated Boost filesystem header 5 6--- 7 src/slic3r/GUI/RemovableDriveManager.cpp | 3 +-- 8 1 file changed, 1 insertion(+), 2 deletions(-) 9 10diff --git a/src/slic3r/GUI/RemovableDriveManager.cpp b/src/slic3r/GUI/RemovableDriveManager.cpp 11index fcddcbd61..b4e895c78 100644 12--- a/src/slic3r/GUI/RemovableDriveManager.cpp 13+++ b/src/slic3r/GUI/RemovableDriveManager.cpp 14@@ -22,7 +22,6 @@ 15 #include <pwd.h> 16 #include <boost/filesystem.hpp> 17 #include <boost/system/error_code.hpp> 18-#include <boost/filesystem/convenience.hpp> 19 #include <boost/process.hpp> 20 #endif 21 22@@ -202,7 +201,7 @@ namespace search_for_drives_internal 23 stat(path.c_str(), &buf); 24 uid_t uid = buf.st_uid; 25 if (getuid() == uid) 26- out.emplace_back(DriveData{ boost::filesystem::basename(boost::filesystem::path(path)), path }); 27+ out.emplace_back(DriveData{ boost::filesystem::path(path).stem().string(), path }); 28 } 29 } 30 } 31-- 322.47.0 33