From f69171320d6bace03a18b0570a0bb90c619671f9 Mon Sep 17 00:00:00 2001 From: Juan RP Date: Sat, 31 Oct 2015 12:07:06 +0100 Subject: [PATCH] xbps-remove: fix previous correctly: process XBPS_STATE_ALTGROUP states. --- bin/xbps-remove/main.c | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/bin/xbps-remove/main.c b/bin/xbps-remove/main.c index 66394363..f8086e9d 100644 --- a/bin/xbps-remove/main.c +++ b/bin/xbps-remove/main.c @@ -117,13 +117,19 @@ state_cb_rm(const struct xbps_state_cb_data *xscd, void *cbdata _unused) syslog(LOG_ERR, "%s", xscd->desc); } break; - default: + case XBPS_STATE_ALTGROUP_ADDED: + case XBPS_STATE_ALTGROUP_REMOVED: + case XBPS_STATE_ALTGROUP_SWITCHED: + case XBPS_STATE_ALTGROUP_LINK_ADDED: + case XBPS_STATE_ALTGROUP_LINK_REMOVED: if (xscd->desc) { printf("%s\n", xscd->desc); if (slog) syslog(LOG_NOTICE, "%s", xscd->desc); } break; + default: + break; } return 0;