diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-10-13 14:20:30 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-10-13 14:20:30 +0300 |
commit | 309b421cf74a079189f328271ce977e9f036d5a9 (patch) | |
tree | d6cbe457a7753e7b823513eb77790d76258ac2ff /rpmsign.c | |
parent | 8186b59e684ba098da8005b10d7f427427f58f41 (diff) | |
download | rpm-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.c | 2 |
1 files changed, 2 insertions, 0 deletions
@@ -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); } |