xbps_remove_pkg: issue a XBPS_STATE_REMOVE_FAIL state cb if access(2) failed.
This commit is contained in:
parent
17c539c2f3
commit
9d767f19cb
@ -307,6 +307,11 @@ xbps_remove_pkg(const char *pkgname, const char *version, bool update)
|
|||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
if (errno != ENOENT) {
|
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;
|
rv = errno;
|
||||||
goto out;
|
goto out;
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user