aboutsummaryrefslogtreecommitdiff
path: root/src/remove_pkg.cc
diff options
context:
space:
mode:
authordacctal <dacctalyt@gmail.com>2026-04-17 08:16:21 +0000
committerdacctal <dacctalyt@gmail.com>2026-04-17 08:16:21 +0000
commitc421fe8fb87e949bae1860f0d501cf8e89ce0f18 (patch)
tree7b2ec26ec674bf864feb80a38aa9b33c7401e479 /src/remove_pkg.cc
parent574708a5f97907c4b4e67788d38f89fac0981b70 (diff)
started manifest template
Diffstat (limited to 'src/remove_pkg.cc')
-rw-r--r--src/remove_pkg.cc6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/remove_pkg.cc b/src/remove_pkg.cc
index fa41bbc..6b82296 100644
--- a/src/remove_pkg.cc
+++ b/src/remove_pkg.cc
@@ -9,15 +9,15 @@
void remove_pkg(Pkg pkg) {
for (auto const& dir_entry : std::filesystem::recursive_directory_iterator(pkg.src)) {
if (dir_entry.path().extension().string().rfind(".so", 0) == 0) {
- std::filesystem::remove(lib+"/"+dir_entry.path().filename().string());
+ std::filesystem::remove(install_directories["lib"]+"/"+dir_entry.path().filename().string());
std::cout << print_pkgit << "removed library: " << dir_entry << "\n";
} else if (!access(dir_entry.path().c_str(), X_OK) && !is_directory(dir_entry.path())) {
- std::filesystem::remove(bin+"/"+dir_entry.path().filename().string());
+ std::filesystem::remove(install_directories["bin"]+"/"+dir_entry.path().filename().string());
std::cout << print_pkgit << "removed executable: " << dir_entry << "\n";
} else if (dir_entry.path().extension() == ".h") {
- std::filesystem::remove(include+"/"+dir_entry.path().filename().string());
+ std::filesystem::remove(install_directories["include"]+"/"+dir_entry.path().filename().string());
std::cout << print_pkgit << "removed include: " << dir_entry << "\n";
}
}