summaryrefslogtreecommitdiff
path: root/rpmqv.c
diff options
context:
space:
mode:
authorjbj <devnull@localhost>2001-10-23 20:52:51 +0000
committerjbj <devnull@localhost>2001-10-23 20:52:51 +0000
commit72f92dd7448cfb1394a40a0fc5c302cdd31753f8 (patch)
treebfbe463977c2752518c423b278af7d4d0e823ccd /rpmqv.c
parent3b820b2d5354fffc824218ee3750a1a9435f0a8e (diff)
downloadlibrpm-tizen-72f92dd7448cfb1394a40a0fc5c302cdd31753f8.tar.gz
librpm-tizen-72f92dd7448cfb1394a40a0fc5c302cdd31753f8.tar.bz2
librpm-tizen-72f92dd7448cfb1394a40a0fc5c302cdd31753f8.zip
- wire transactions through rpmcli signature modes.
CVS patchset: 5131 CVS date: 2001/10/23 20:52:51
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;