xbps-remove: fix previous correctly: process XBPS_STATE_ALTGROUP states.

This commit is contained in:
Juan RP 2015-10-31 12:07:06 +01:00
parent 85f75c2531
commit f69171320d

View File

@ -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;