xbps_configure_pkg: show/return proper return value in an error path.
This commit is contained in:
parent
73764a90fe
commit
4d38311fbe
@ -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",
|
||||||
|
Loading…
Reference in New Issue
Block a user