summaryrefslogtreecommitdiff
path: root/lib/verify.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-01-21 14:14:28 +0200
committerPanu Matilainen <pmatilai@redhat.com>2010-01-21 14:14:28 +0200
commit04ad4b1155ec4b082fbac425a575a0ba05337ab1 (patch)
tree234aeb95a90c911379e16da4a11e8c3d699ca87b /lib/verify.c
parentce1d2e87157f4a7ebc4f4d6f26024ac597400367 (diff)
downloadrpm-04ad4b1155ec4b082fbac425a575a0ba05337ab1.tar.gz
rpm-04ad4b1155ec4b082fbac425a575a0ba05337ab1.tar.bz2
rpm-04ad4b1155ec4b082fbac425a575a0ba05337ab1.zip
Really fix verification error code to not depend on verbosity (RhBug:557101)
- earlier fix from commit 6649c23cac5823d0c7415df5cfd66e5aac5eebd2 was broken as it could reset return code to zero after detecting errors earlier
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 44ab31453..1068cfe57 100644
--- a/lib/verify.c
+++ b/lib/verify.c
@@ -353,7 +353,7 @@ static int verifyHeader(QVA_t qva, const rpmts ts, Header h)
static const char *const aok = ".";
static const char *const unknown = "?";
- ec = (verifyResult != 0);
+ if (verifyResult) ec = 1;
#define _verify(_RPMVERIFY_F, _C) \
((verifyResult & _RPMVERIFY_F) ? _C : aok)