Fix preun scriptlet failure not aborting rpm erase
Since commit f4a49c3d44
( Unceremoniously
eliminate rpmpsmNext() ), when a preun scriptlet is failing, rpm continues to
be erased. Handling return code of runInstScript.
This commit is contained in:
parent
215f3e9466
commit
1ac507f15f
|
@ -757,8 +757,10 @@ static rpmRC rpmPackageErase(rpmts ts, rpmpsm psm)
|
|||
if (rc) break;
|
||||
}
|
||||
|
||||
if (!(rpmtsFlags(ts) & RPMTRANS_FLAG_NOPREUN))
|
||||
if (!(rpmtsFlags(ts) & RPMTRANS_FLAG_NOPREUN)) {
|
||||
rc = runInstScript(psm, RPMTAG_PREUN);
|
||||
if (rc) break;
|
||||
}
|
||||
|
||||
if (!(rpmtsFlags(ts) & RPMTRANS_FLAG_NOTRIGGERUN)) {
|
||||
/* Run file triggers in this package other package(s) set off. */
|
||||
|
|
Loading…
Reference in New Issue