summaryrefslogtreecommitdiff
path: root/rpmqv.c
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2010-09-03 14:03:48 +0300
committerPanu Matilainen <pmatilai@redhat.com>2010-09-03 14:23:55 +0300
commit8f75ac30fb11e41a3ffab93e139139bd84c2cf24 (patch)
tree2f32eab0fec4ca343dc2d61663e9d3a8dc7a1a61 /rpmqv.c
parent00c72fda899cf98c32ec806230695d03943d370e (diff)
downloadlibrpm-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.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/rpmqv.c b/rpmqv.c
index bf7e8287e..fbea262cd 100644
--- a/rpmqv.c
+++ b/rpmqv.c
@@ -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 */