aboutsummaryrefslogtreecommitdiff
path: root/src/remove_pkg.cc
diff options
context:
space:
mode:
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";
}
}