From b3169a5687bfc02fd512f1a1b5f83dfe00bbce7c Mon Sep 17 00:00:00 2001 From: Sterling Winter Date: Fri, 2 Jan 2009 23:40:20 -0600 Subject: 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 --- lib/libalpm/remove.c | 1 + 1 file changed, 1 insertion(+) diff --git a/lib/libalpm/remove.c b/lib/libalpm/remove.c index 864fafaf..0bec5229 100644 --- a/lib/libalpm/remove.c +++ b/lib/libalpm/remove.c @@ -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); -- cgit v1.2.3-24-g4f1b