summaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJiri Moskovcak <jmoskovc@redhat.com>2011-01-18 13:16:54 +0100
committerJiri Moskovcak <jmoskovc@redhat.com>2011-01-18 13:16:54 +0100
commit50b27f752f0cd70b8b2fc9cf4bd2377403990f42 (patch)
treef96eedd78877d902aeab6fff88839e74b5b12214 /src
parentc3bd6550eb9df8651899f41efec141445ca9c788 (diff)
downloadabrt-50b27f752f0cd70b8b2fc9cf4bd2377403990f42.tar.gz
abrt-50b27f752f0cd70b8b2fc9cf4bd2377403990f42.tar.xz
abrt-50b27f752f0cd70b8b2fc9cf4bd2377403990f42.zip
fixed build with rpm >= 4.9
Diffstat (limited to 'src')
-rw-r--r--src/Daemon/RPM.cpp5
1 files changed, 2 insertions, 3 deletions
diff --git a/src/Daemon/RPM.cpp b/src/Daemon/RPM.cpp
index fd25b499..69514509 100644
--- a/src/Daemon/RPM.cpp
+++ b/src/Daemon/RPM.cpp
@@ -112,7 +112,6 @@ bool CheckHash(const char* pPackage, const char* pPath)
if (header != NULL)
{
rpmfi fi = rpmfiNew(ts, header, RPMTAG_BASENAMES, RPMFI_NOHEADER);
- pgpHashAlgo hashAlgo;
std::string headerHash;
char computedHash[1024] = "";
@@ -120,8 +119,8 @@ bool CheckHash(const char* pPackage, const char* pPath)
{
if (strcmp(pPath, rpmfiFN(fi)) == 0)
{
- headerHash = rpmfiFDigestHex(fi, &hashAlgo);
- rpmDoDigest(hashAlgo, pPath, 1, (unsigned char*) computedHash, NULL);
+ headerHash = rpmfiFDigestHex(fi, NULL);
+ rpmDoDigest(rpmfiDigestAlgo(fi), pPath, 1, (unsigned char*) computedHash, NULL);
ret = (headerHash != "" && headerHash == computedHash);
break;
}