diff options
author | Panu Matilainen <pmatilai@redhat.com> | 2010-09-03 14:03:48 +0300 |
---|---|---|
committer | Panu Matilainen <pmatilai@redhat.com> | 2010-09-03 14:23:55 +0300 |
commit | 8f75ac30fb11e41a3ffab93e139139bd84c2cf24 (patch) | |
tree | 2f32eab0fec4ca343dc2d61663e9d3a8dc7a1a61 /rpmqv.c | |
parent | 00c72fda899cf98c32ec806230695d03943d370e (diff) | |
download | librpm-tizen-8f75ac30fb11e41a3ffab93e139139bd84c2cf24.tar.gz librpm-tizen-8f75ac30fb11e41a3ffab93e139139bd84c2cf24.tar.bz2 librpm-tizen-8f75ac30fb11e41a3ffab93e139139bd84c2cf24.zip |
Lookup signature type from cli utility already
- Avoid relying on the murky rpmLookupSignatureType() foobar on
low API level, pass the wanted tag explicitly from caller
- rpmLookupSignature(), rpmGetPassPhrase() + the bits they rely on
are now free of users within librpm itself
Diffstat (limited to 'rpmqv.c')
-rw-r--r-- | rpmqv.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -500,7 +500,8 @@ int main(int argc, char *argv[]) if (!poptPeekArg(optCon)) argerror(_("no arguments given")); ec = rpmcliSign((ARGV_const_t) poptGetArgs(optCon), - (qva->qva_mode == RPMSIGN_DEL_SIGNATURE), passPhrase); + (qva->qva_mode == RPMSIGN_DEL_SIGNATURE), + rpmLookupSignatureType(RPMLOOKUPSIG_QUERY), passPhrase); break; #endif /* IAM_RPMK */ |