diff options
| author | dacctal <dacctal@symlinx.net> | 2026-05-25 06:39:29 +0000 |
|---|---|---|
| committer | dacctal <dacctal@symlinx.net> | 2026-05-25 06:39:29 +0000 |
| commit | 2dea5bc2ad4281042758f0e9bfe98fa96bc89412 (patch) | |
| tree | 325a53d3e82459b91a03e167fc8d32bc1c9f90ec /src/remove.c | |
| parent | cb7e87a7889c8ee3f33db43dc2f5653385dc9e29 (diff) | |
declarative package management
Diffstat (limited to 'src/remove.c')
| -rw-r--r-- | src/remove.c | 11 |
1 files changed, 6 insertions, 5 deletions
diff --git a/src/remove.c b/src/remove.c index ac8e8f9..1282d44 100644 --- a/src/remove.c +++ b/src/remove.c @@ -21,11 +21,12 @@ // FILE* file_ptr = fopen(dirent_ptr->d_name, "r"); // if (!file_ptr) { continue; } // if (strcmp(get_filename_ext(dirent_ptr->d_name), ".so") == 0) { -// remove(strcat(install_directories[], dirent_ptr->d_name)); -// } else if (!access(dir_entry.path().c_str(), X_OK) && !is_directory(dir_entry.path())) { -// std::filesystem::remove(install_directories["bin"]+"/"+dir_entry.path().filename().string()); -// } else if (dir_entry.path().extension() == ".h") { -// std::filesystem::remove(install_directories["include"]+"/"+dir_entry.path().filename().string()); +// remove(strcat(map_get(&cached_install_directories, "lib"), strcat("/", dirent_ptr->d_name))); +// } else if (!access(dirent_ptr->d_name, X_OK) && stat_buf.st_mode != S_IFDIR) { +// remove(strcat(map_get(&cached_install_directories, "bin"), strcat("/", dirent_ptr->d_name))); +// } else if (strcmp(get_filename_ext(dirent_ptr->d_name), ".h") == 0) { +// remove(strcat(map_get(&cached_install_directories, "include"), strcat("/", dirent_ptr->d_name))); +// } // } // } //} |
