summaryrefslogtreecommitdiff
path: root/lib/psm.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-09-07 09:49:29 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-09-07 09:49:29 +0300
commitfbe701e7fe639da5a8b902cf4f358728db68cb3d (patch)
tree1cfca6bcdc41cca01828d77ac399d16b80bc41a9 /lib/psm.c
parent7defdceb1d320aad535654e8ba25b618d079451c (diff)
downloadrpm-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.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/lib/psm.c b/lib/psm.c
index af1d4126f..de42c53b4 100644
--- a/lib/psm.c
+++ b/lib/psm.c
@@ -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);