summaryrefslogtreecommitdiff
path: root/rpmqv.c
diff options
context:
space:
mode:
Diffstat (limited to 'rpmqv.c')
-rwxr-xr-xrpmqv.c11
1 files changed, 2 insertions, 9 deletions
diff --git a/rpmqv.c b/rpmqv.c
index 262d2789f..001be6550 100755
--- a/rpmqv.c
+++ b/rpmqv.c
@@ -1149,18 +1149,11 @@ int main(int argc, const char ** argv)
#ifdef IAM_RPMK
case MODE_CHECKSIG:
- if (!poptPeekArg(optCon))
- argerror(_("no packages given for signature check"));
- ec = rpmCheckSig(ka, (const char **)poptGetArgs(optCon));
- /* XXX don't overflow single byte exit status */
- if (ec > 255) ec = 255;
- break;
-
case MODE_RESIGN:
if (!poptPeekArg(optCon))
- argerror(_("no packages given for signing"));
+ argerror(_("no arguments given"));
ka->passPhrase = passPhrase;
- ec = rpmReSign(ka, (const char **)poptGetArgs(optCon));
+ ec = rpmcliSign(ka, (const char **)poptGetArgs(optCon));
/* XXX don't overflow single byte exit status */
if (ec > 255) ec = 255;
break;