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/verify.c | |
parent | 7defdceb1d320aad535654e8ba25b618d079451c (diff) | |
download | librpm-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.c | 2 |
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); |