summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--libopkg/opkg_remove.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libopkg/opkg_remove.c b/libopkg/opkg_remove.c
index 5f4219b..34f9154 100644
--- a/libopkg/opkg_remove.c
+++ b/libopkg/opkg_remove.c
@@ -360,7 +360,7 @@ remove_data_files_and_list(pkg_t *pkg)
/* File may have been claimed by another package. */
continue;
- if (file_is_dir(file_name)) {
+ if (!file_is_symlink(file_name) && file_is_dir(file_name)) {
str_list_append(&installed_dirs, file_name);
continue;
}