Partial revert of 5d59a15faf67d921dfb190195c07bf4a70bca137.
Error out if "pre-remove" script action fails, otherwise package is removed but its files are still there (ouch).
This commit is contained in:
parent
5e613243ea
commit
b5bb1debe4
3
NEWS
3
NEWS
@ -12,9 +12,6 @@ xbps-0.20 (???):
|
|||||||
--enable-debug
|
--enable-debug
|
||||||
--enable-tests
|
--enable-tests
|
||||||
|
|
||||||
* libxbps: when removing a package and if executing its "pre-remove"
|
|
||||||
action fails, still continue removing this package.
|
|
||||||
|
|
||||||
* libxbps: fixed a stupid typo that made it to skip executing the
|
* libxbps: fixed a stupid typo that made it to skip executing the
|
||||||
"pre-remove" action in installed packages.
|
"pre-remove" action in installed packages.
|
||||||
|
|
||||||
|
@ -264,9 +264,8 @@ xbps_remove_pkg(struct xbps_handle *xhp,
|
|||||||
errno, pkgname, version,
|
errno, pkgname, version,
|
||||||
"%s: [remove] REMOVE script failed to "
|
"%s: [remove] REMOVE script failed to "
|
||||||
"execute pre ACTION: %s",
|
"execute pre ACTION: %s",
|
||||||
pkgver, strerror(errno));
|
pkgver, strerror(rv));
|
||||||
rv = errno;
|
goto out;
|
||||||
goto purge;
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
/*
|
/*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user