Partial revert of 5d59a15faf
.
Error out if "pre-remove" script action fails, otherwise package is removed but its files are still there (ouch).
This commit is contained in:
@ -264,9 +264,8 @@ xbps_remove_pkg(struct xbps_handle *xhp,
|
||||
errno, pkgname, version,
|
||||
"%s: [remove] REMOVE script failed to "
|
||||
"execute pre ACTION: %s",
|
||||
pkgver, strerror(errno));
|
||||
rv = errno;
|
||||
goto purge;
|
||||
pkgver, strerror(rv));
|
||||
goto out;
|
||||
}
|
||||
}
|
||||
/*
|
||||
|
Reference in New Issue
Block a user