summaryrefslogtreecommitdiff
path: root/lib/libalpm/remove.c
diff options
context:
space:
mode:
authorAurelien Foret <aurelien@archlinux.org>2005-04-17 10:01:47 +0000
committerAurelien Foret <aurelien@archlinux.org>2005-04-17 10:01:47 +0000
commit6dfa3ef6af59fbe2663d05832290aa2e4e158a82 (patch)
tree03da08a10cfacbb93cd238c867cc1660a0167848 /lib/libalpm/remove.c
parentcb0182160d91f6f99cc8da28d399ad002fe1ec26 (diff)
improved logs for package removal
Diffstat (limited to 'lib/libalpm/remove.c')
-rw-r--r--lib/libalpm/remove.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c
index 83786275..83a745b1 100644
--- a/lib/libalpm/remove.c
+++ b/lib/libalpm/remove.c
@@ -165,9 +165,11 @@ int remove_commit(pmtrans_t *trans, pmdb_t *db)
continue;
}
if(S_ISDIR(buf.st_mode)) {
- _alpm_log(PM_LOG_FLOW2, "removing directory %s", file);
if(rmdir(line)) {
/* this is okay, other packages are probably using it. */
+ _alpm_log(PM_LOG_DEBUG, "keeping directory %s", file);
+ } else {
+ _alpm_log(PM_LOG_FLOW2, "removing directory %s", file);
}
} else {
/* if the file is flagged, back it up to .pacsave */