mirror of
https://github.com/moparisthebest/pacman
synced 2024-12-22 15:58:50 -05:00
Log pacsave warnings to pacman.log
Pacman currently logs .pacnew warnings to pacman.log but a similar history of .pacsave warnings isn't kept. The user should be able to search pacman.log to discover when and where all .pac* files were created by pacman. Addresses FS#12531. Signed-off-by: Dan McGee <dan@archlinux.org>
This commit is contained in:
parent
c31fcfd833
commit
b3169a5687
@ -285,6 +285,7 @@ static void unlink_file(pmpkg_t *info, alpm_list_t *lp, pmtrans_t *trans)
|
||||
snprintf(newpath, PATH_MAX, "%s.pacsave", file);
|
||||
rename(file, newpath);
|
||||
_alpm_log(PM_LOG_WARNING, _("%s saved as %s\n"), file, newpath);
|
||||
alpm_logaction("warning: %s saved as %s\n", file, newpath);
|
||||
return;
|
||||
} else {
|
||||
_alpm_log(PM_LOG_DEBUG, "transaction is set to NOSAVE, not backing up '%s'\n", file);
|
||||
|
Loading…
Reference in New Issue
Block a user