xbps_configure_pkg: show/return proper return value in an error path.

This commit is contained in:
Juan RP 2014-02-23 10:32:21 +01:00
parent 73764a90fe
commit 4d38311fbe

View File

@ -123,6 +123,7 @@ xbps_configure_pkg(struct xbps_handle *xhp,
pkgmetad = xbps_dictionary_internalize_from_file(plist); pkgmetad = xbps_dictionary_internalize_from_file(plist);
if (pkgmetad == NULL) { if (pkgmetad == NULL) {
rv = errno;
xbps_set_cb_state(xhp, XBPS_STATE_CONFIGURE_FAIL, xbps_set_cb_state(xhp, XBPS_STATE_CONFIGURE_FAIL,
errno, pkgver, errno, pkgver,
"%s: [configure] cannot read metadata plist: %s", "%s: [configure] cannot read metadata plist: %s",