summaryrefslogtreecommitdiff
path: root/python
diff options
context:
space:
mode:
authorPanu Matilainen <pmatilai@redhat.com>2008-05-30 12:28:29 +0300
committerPanu Matilainen <pmatilai@redhat.com>2008-06-02 09:50:48 +0300
commitb9c69d1bab3c5b932664a7d071aaf11ef1d48483 (patch)
treeb185505ceefcba2d74f778bd3b521cd2c4b2d62c /python
parent29bdb49f16361548d53de75b827a2c926d4d292a (diff)
downloadlibrpm-tizen-b9c69d1bab3c5b932664a7d071aaf11ef1d48483.tar.gz
librpm-tizen-b9c69d1bab3c5b932664a7d071aaf11ef1d48483.tar.bz2
librpm-tizen-b9c69d1bab3c5b932664a7d071aaf11ef1d48483.zip
rpmfiFDigestHex() instead of manual hex conversion
- showQueryPackage() and python rpmfi_Digest() at least..
Diffstat (limited to 'python')
-rw-r--r--python/rpmfi-py.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/python/rpmfi-py.c b/python/rpmfi-py.c
index bf68c45f7..241ecc168 100644
--- a/python/rpmfi-py.c
+++ b/python/rpmfi-py.c
@@ -96,12 +96,10 @@ static PyObject *
rpmfi_Digest(rpmfiObject * s)
{
const unsigned char *digest;
- size_t diglen = 0;
- digest = rpmfiFDigest(s->fi, NULL, &diglen);
+ digest = rpmfiFDigestHex(s->fi, NULL);
if (digest) {
- char *dig = pgpHexStr(digest, diglen);
- return Py_BuildValue("s", dig);
+ return Py_BuildValue("s", digest);
} else {
Py_RETURN_NONE;
}