xbps_remove_pkg: issue a XBPS_STATE_REMOVE_FAIL state cb if access(2) failed.

This commit is contained in:
Juan RP 2011-12-24 01:30:57 +01:00
parent 17c539c2f3
commit 9d767f19cb

View File

@ -307,6 +307,11 @@ xbps_remove_pkg(const char *pkgname, const char *version, bool update)
}
} else {
if (errno != ENOENT) {
xbps_set_cb_state(XBPS_STATE_REMOVE_FAIL,
errno, pkgname, version,
"%s: [remove] REMOVE script failed to "
"execute pre ACTION: %s",
pkgver, strerror(errno));
rv = errno;
goto out;
}