summaryrefslogtreecommitdiff
path: root/tools/repomdxml2solv.c
diff options
context:
space:
mode:
authorMichael Schroeder <mls@suse.de>2011-03-02 12:39:15 +0100
committerMichael Schroeder <mls@suse.de>2011-03-02 12:39:15 +0100
commit8d01524d480dccb7324bf525a3110840166dd010 (patch)
treeecbb80a4015b8373919f1e406fe4234f2871a87f /tools/repomdxml2solv.c
parent50126b5664a9dc5089911a5354d76febc6ed1a77 (diff)
downloadlibsolv-8d01524d480dccb7324bf525a3110840166dd010.tar.gz
libsolv-8d01524d480dccb7324bf525a3110840166dd010.tar.bz2
libsolv-8d01524d480dccb7324bf525a3110840166dd010.zip
- add sat_chksum_type2str() and sat_chksum_str2type() and use them
Diffstat (limited to 'tools/repomdxml2solv.c')
-rw-r--r--tools/repomdxml2solv.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/tools/repomdxml2solv.c b/tools/repomdxml2solv.c
index 2dcdb7e..854d790 100644
--- a/tools/repomdxml2solv.c
+++ b/tools/repomdxml2solv.c
@@ -15,6 +15,7 @@
#include "pool.h"
#include "repo.h"
+#include "chksum.h"
#include "repo_repomdxml.h"
#include "common_write.h"
@@ -74,11 +75,10 @@ doquery(Pool *pool, Repo *repo, const char *query)
case REPOKEY_TYPE_NUM:
printf("%d\n", di.kv.num);
break;
+ case REPOKEY_TYPE_MD5:
case REPOKEY_TYPE_SHA1:
- printf("sha1:%s\n", repodata_chk2str(di.data, di.key->type, (unsigned char *)di.kv.str));
- break;
case REPOKEY_TYPE_SHA256:
- printf("sha256:%s\n", repodata_chk2str(di.data, di.key->type, (unsigned char *)di.kv.str));
+ printf("%s:%s\n", sat_chksum_type2str(di.key->type), repodata_chk2str(di.data, di.key->type, (unsigned char *)di.kv.str));
break;
default:
break;