summaryrefslogtreecommitdiff
path: root/rpmqv.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-09-03 12:02:17 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-09-03 12:30:57 +0300
commit00c72fda899cf98c32ec806230695d03943d370e (patch)
treefcd70cb8aea8761591b297df0808a51084f2e97a /rpmqv.c
parent1306fc5ee5dbb665609934ed081afbc573c16d05 (diff)
downloadlibrpm-tizen-00c72fda899cf98c32ec806230695d03943d370e.tar.gz
librpm-tizen-00c72fda899cf98c32ec806230695d03943d370e.tar.bz2
librpm-tizen-00c72fda899cf98c32ec806230695d03943d370e.zip
rpmcliSign() only creates or deletes signatures
- Lose the "this has got something to do with signatures and stuff" dispatcher mode, rpmcliSign() now only does what it says. It also doesn't need transaction set for anything. It doesn't need much else than files to operate on, what to do and possibly a passphrase. It probably will need more when rpmLookupSignatureType() is put out of its misery, but this'll do for now. - Lose the now unnecessary passPhrase member from QVA_t
Diffstat (limited to 'rpmqv.c')
-rw-r--r--rpmqv.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/rpmqv.c b/rpmqv.c
index e8335d63a..bf7e8287e 100644
--- a/rpmqv.c
+++ b/rpmqv.c
@@ -499,8 +499,8 @@ int main(int argc, char *argv[])
case MODE_RESIGN:
if (!poptPeekArg(optCon))
argerror(_("no arguments given"));
- ka->passPhrase = passPhrase;
- ec = rpmcliSign(ts, ka, (ARGV_const_t) poptGetArgs(optCon));
+ ec = rpmcliSign((ARGV_const_t) poptGetArgs(optCon),
+ (qva->qva_mode == RPMSIGN_DEL_SIGNATURE), passPhrase);
break;
#endif /* IAM_RPMK */