improved logs for package removal
This commit is contained in:
parent
cb0182160d
commit
6dfa3ef6af
1 changed files with 3 additions and 1 deletions
|
@ -165,9 +165,11 @@ int remove_commit(pmtrans_t *trans, pmdb_t *db)
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
if(S_ISDIR(buf.st_mode)) {
|
if(S_ISDIR(buf.st_mode)) {
|
||||||
_alpm_log(PM_LOG_FLOW2, "removing directory %s", file);
|
|
||||||
if(rmdir(line)) {
|
if(rmdir(line)) {
|
||||||
/* this is okay, other packages are probably using it. */
|
/* 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 {
|
} else {
|
||||||
/* if the file is flagged, back it up to .pacsave */
|
/* if the file is flagged, back it up to .pacsave */
|
||||||
|
|
Loading…
Add table
Reference in a new issue