xbps-install/state_cb: do not treat unknown states as error if desc is not NULL.

This commit is contained in:
Juan RP 2015-10-30 14:47:25 +01:00
parent f73461a854
commit c274363b0e

View File

@ -186,7 +186,7 @@ state_cb(const struct xbps_state_cb_data *xscd, void *cbdata _unused)
break;
default:
if (xscd->desc)
xbps_error_printf("%s\n", xscd->desc);
printf("%s\n", xscd->desc);
else
xbps_dbg_printf(xscd->xhp,
"%s: unknown state %d\n", xscd->arg, xscd->state);