diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-09-03 12:02:17 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-09-03 12:30:57 +0300 |
commit | 00c72fda899cf98c32ec806230695d03943d370e (patch) | |
tree | fcd70cb8aea8761591b297df0808a51084f2e97a /rpmqv.c | |
parent | 1306fc5ee5dbb665609934ed081afbc573c16d05 (diff) | |
download | librpm-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.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ |