diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-09-07 09:49:29 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-09-07 09:49:29 +0300 |
commit | fbe701e7fe639da5a8b902cf4f358728db68cb3d (patch) | |
tree | 1cfca6bcdc41cca01828d77ac399d16b80bc41a9 /lib/psm.c | |
parent | 7defdceb1d320aad535654e8ba25b618d079451c (diff) | |
download | rpm-fbe701e7fe639da5a8b902cf4f358728db68cb3d.tar.gz rpm-fbe701e7fe639da5a8b902cf4f358728db68cb3d.tar.bz2 rpm-fbe701e7fe639da5a8b902cf4f358728db68cb3d.zip |
Fix error code on verify scriptlet failure
- Verify scriptlet failures were only logged but didn't reflect error
codes as they were considered "warn only" along with most others
Diffstat (limited to 'lib/psm.c')
-rw-r--r-- | lib/psm.c | 4 |
1 files changed, 3 insertions, 1 deletions
@@ -410,7 +410,9 @@ static rpmRC runScript(rpmpsm psm, ARGV_const_t prefixes, rpmScript script, int arg1, int arg2) { rpmRC rc = RPMRC_OK; - int warn_only =(script->tag != RPMTAG_PREIN && script->tag != RPMTAG_PREUN); + int warn_only = (script->tag != RPMTAG_PREIN && + script->tag != RPMTAG_PREUN && + script->tag != RPMTAG_VERIFYSCRIPT); int selinux = !(rpmtsFlags(psm->ts) & RPMTRANS_FLAG_NOCONTEXTS); rpmswEnter(rpmtsOp(psm->ts, RPMTS_OP_SCRIPTLETS), 0); |