libxbps: bah do not ignore ENOENT when running INSTALL/REMOVE scripts.
This commit is contained in:
@@ -222,7 +222,7 @@ xbps_remove_pkg(const char *pkgname, const char *version, bool update)
|
||||
prepostf = true;
|
||||
rv = xbps_file_chdir_exec(rootdir, buf, "pre", pkgname,
|
||||
version, update ? "yes" : "no", NULL);
|
||||
if (rv != 0 && errno != ENOENT) {
|
||||
if (rv != 0) {
|
||||
fprintf(stderr,
|
||||
"%s: prerm action target error (%s)\n", pkgname,
|
||||
strerror(errno));
|
||||
@@ -286,7 +286,7 @@ xbps_remove_pkg(const char *pkgname, const char *version, bool update)
|
||||
if (update == false && prepostf) {
|
||||
rv = xbps_file_chdir_exec(rootdir, buf, "post",
|
||||
pkgname, version, NULL);
|
||||
if (rv != 0 && errno != ENOENT) {
|
||||
if (rv != 0) {
|
||||
fprintf(stderr,
|
||||
"%s: postrm action target error (%s)\n",
|
||||
pkgname, strerror(errno));
|
||||
|
||||
Reference in New Issue
Block a user