diff options
author | Sterling Winter <sterling@archlinux.us> | 2009-01-03 06:40:20 +0100 |
---|---|---|
committer | Dan McGee <dan@archlinux.org> | 2009-01-03 06:40:20 +0100 |
commit | b3169a5687bfc02fd512f1a1b5f83dfe00bbce7c (patch) | |
tree | 5184f8bddc2c7709feca1316bfc43cc8e2280203 /lib/libalpm | |
parent | c31fcfd833fc527a3774c7b1bc29686194d23942 (diff) | |
download | pacman-b3169a5687bfc02fd512f1a1b5f83dfe00bbce7c.tar.gz pacman-b3169a5687bfc02fd512f1a1b5f83dfe00bbce7c.tar.xz |
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>
Diffstat (limited to 'lib/libalpm')
-rw-r--r-- | lib/libalpm/remove.c | 1 |
1 files changed, 1 insertions, 0 deletions
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); |