Introduce XBPS_STATE_CONFIGURE_DONE and use it in xbps-reconfigure(8).

This commit is contained in:
Juan RP
2013-03-07 09:24:04 +01:00
parent 37263d63c9
commit 90b6803825
4 changed files with 16 additions and 3 deletions

View File

@@ -69,6 +69,12 @@ state_cb(struct xbps_state_cb_data *xscd, void *cbd)
if (syslog_enabled)
syslog(LOG_NOTICE, "%s: configuring ...", xscd->arg);
break;
case XBPS_STATE_CONFIGURE_DONE:
printf("%s: configured successfully.\n", xscd->arg);
if (syslog_enabled)
syslog(LOG_NOTICE,
"%s: configured successfully.", xscd->arg);
break;
/* errors */
case XBPS_STATE_CONFIGURE_FAIL:
xbps_error_printf("%s\n", xscd->desc);