From 309b421cf74a079189f328271ce977e9f036d5a9 Mon Sep 17 00:00:00 2001 From: Panu Matilainen Date: Wed, 13 Oct 2010 14:20:30 +0300 Subject: Oops, fixup rpmsign exit codes on success --- rpmsign.c | 2 ++ 1 file changed, 2 insertions(+) (limited to 'rpmsign.c') 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); } -- cgit v1.2.1