added patch to build with rpm 4.9
This commit is contained in:
parent
0411cb81fe
commit
4a5a3ac6b4
1 changed files with 22 additions and 0 deletions
22
abrt-1.1.14-rpm-digestalgo.patch
Normal file
22
abrt-1.1.14-rpm-digestalgo.patch
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
diff -up abrt-1.1.14/src/Daemon/RPM.cpp.rpm49-hashalgo abrt-1.1.14/src/Daemon/RPM.cpp
|
||||
--- abrt-1.1.14/src/Daemon/RPM.cpp.rpm49-hashalgo 2010-11-15 14:46:06.000000000 +0200
|
||||
+++ abrt-1.1.14/src/Daemon/RPM.cpp 2011-01-18 10:57:57.000000000 +0200
|
||||
@@ -112,7 +112,6 @@ bool CheckHash(const char* pPackage, con
|
||||
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, con
|
||||
{
|
||||
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;
|
||||
}
|
||||
Loading…
Add table
Add a link
Reference in a new issue