summaryrefslogtreecommitdiff
path: root/rpmsign.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-10-13 14:20:30 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-10-13 14:20:30 +0300
commit309b421cf74a079189f328271ce977e9f036d5a9 (patch)
treed6cbe457a7753e7b823513eb77790d76258ac2ff /rpmsign.c
parent8186b59e684ba098da8005b10d7f427427f58f41 (diff)
downloadrpm-309b421cf74a079189f328271ce977e9f036d5a9.tar.gz
rpm-309b421cf74a079189f328271ce977e9f036d5a9.tar.bz2
rpm-309b421cf74a079189f328271ce977e9f036d5a9.zip
Oops, fixup rpmsign exit codes on success
Diffstat (limited to 'rpmsign.c')
-rw-r--r--rpmsign.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/rpmsign.c b/rpmsign.c
index 543bd8f11..a1d749e1b 100644
--- a/rpmsign.c
+++ b/rpmsign.c
@@ -109,6 +109,7 @@ static int doSign(poptContext optCon)
if (checkPassPhrase(passPhrase) == 0) {
const char *arg;
fprintf(stderr, _("Pass phrase is good.\n"));
+ rc = 0;
while ((arg = poptGetArg(optCon)) != NULL) {
rc += rpmPkgSign(arg, NULL, passPhrase);
}
@@ -142,6 +143,7 @@ int main(int argc, char *argv[])
ec = doSign(optCon);
break;
case MODE_DELSIGN:
+ ec = 0;
while ((arg = poptGetArg(optCon)) != NULL) {
ec += rpmPkgDelSign(arg);
}