summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/pacman/callback.c30
1 files changed, 30 insertions, 0 deletions
diff --git a/src/pacman/callback.c b/src/pacman/callback.c
index d0887cb7..71d9d04d 100644
--- a/src/pacman/callback.c
+++ b/src/pacman/callback.c
@@ -207,6 +207,30 @@ void cb_event(alpm_event_t event, void *data1, void *data2)
alpm_pkg_get_version(data1));
display_new_optdepends(data2, data1);
break;
+ case ALPM_EVENT_DOWNGRADE_START:
+ if(config->noprogressbar) {
+ printf(_("downgrading %s...\n"), alpm_pkg_get_name(data1));
+ }
+ break;
+ case ALPM_EVENT_DOWNGRADE_DONE:
+ alpm_logaction(config->handle, PACMAN_CALLER_PREFIX,
+ "downgraded %s (%s -> %s)\n",
+ alpm_pkg_get_name(data1),
+ alpm_pkg_get_version(data2),
+ alpm_pkg_get_version(data1));
+ display_new_optdepends(data2, data1);
+ break;
+ case ALPM_EVENT_REINSTALL_START:
+ if(config->noprogressbar) {
+ printf(_("reinstalling %s...\n"), alpm_pkg_get_name(data1));
+ }
+ break;
+ case ALPM_EVENT_REINSTALL_DONE:
+ alpm_logaction(config->handle, PACMAN_CALLER_PREFIX,
+ "reinstalled %s (%s)\n",
+ alpm_pkg_get_name(data1),
+ alpm_pkg_get_version(data1));
+ break;
case ALPM_EVENT_INTEGRITY_START:
if(config->noprogressbar) {
printf(_("checking package integrity...\n"));
@@ -444,6 +468,12 @@ void cb_progress(alpm_progress_t event, const char *pkgname, int percent,
case ALPM_PROGRESS_UPGRADE_START:
opr = _("upgrading");
break;
+ case ALPM_PROGRESS_DOWNGRADE_START:
+ opr = _("downgrading");
+ break;
+ case ALPM_PROGRESS_REINSTALL_START:
+ opr = _("reinstalling");
+ break;
case ALPM_PROGRESS_REMOVE_START:
opr = _("removing");
break;