File createrepo-0.4.11-cachefix.patch of Package createrepo
Index: dumpMetadata.py
===================================================================
--- dumpMetadata.py.orig
+++ dumpMetadata.py
@@ -605,8 +605,8 @@ class RpmMetaData:
t.append("".join(self.hdr[rpm.RPMTAG_SIGGPG]))
if type(self.hdr[rpm.RPMTAG_SIGPGP]) is not types.NoneType:
t.append("".join(self.hdr[rpm.RPMTAG_SIGPGP]))
- if type(self.hdr[rpm.RPMTAG_HDRID]) is not types.NoneType:
- t.append("".join(self.hdr[rpm.RPMTAG_HDRID]))
+ if type(self.hdr[rpm.RPMTAG_SHA1HEADER]) is not types.NoneType:
+ t.append("".join(self.hdr[rpm.RPMTAG_SHA1HEADER]))
key = md5.new("".join(t)).hexdigest()