summaryrefslogtreecommitdiff
path: root/lib/verify.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/verify.c
parent7defdceb1d320aad535654e8ba25b618d079451c (diff)
downloadlibrpm-tizen-fbe701e7fe639da5a8b902cf4f358728db68cb3d.tar.gz
librpm-tizen-fbe701e7fe639da5a8b902cf4f358728db68cb3d.tar.bz2
librpm-tizen-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/verify.c')
-rw-r--r--lib/verify.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/verify.c b/lib/verify.c
index 7c832d981..96fae01bf 100644
--- a/lib/verify.c
+++ b/lib/verify.c
@@ -267,7 +267,7 @@ static int rpmVerifyScript(rpmts ts, Header h)
/* fake up a erasure transaction element */
(void) rpmtsAddEraseElement(ts, h, -1);
- rc = rpmteProcess(rpmtsElement(ts, 0), PKG_VERIFY);
+ rc = (rpmteProcess(rpmtsElement(ts, 0), PKG_VERIFY) != RPMRC_OK);
/* clean up our fake transaction bits */
rpmtsEmpty(ts);