From: Gui Chen Date: Sun, 12 Oct 2014 23:03:51 +0000 (+0000) Subject: createrepo-0.9.8-cachefix X-Git-Tag: submit/devel/20190730.074453~9 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=cd40389a3c056529c9c94e2af9b03164b84983dc;p=tools%2Fcreaterepo.git createrepo-0.9.8-cachefix --- diff --git a/createrepo/yumbased.py b/createrepo/yumbased.py index 0369968..e94b3a5 100644 --- a/createrepo/yumbased.py +++ b/createrepo/yumbased.py @@ -55,8 +55,8 @@ class CreateRepoPackage(YumLocalPackage): 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])) kcsum = misc.Checksums(checksums=[self.checksum_type]) kcsum.update("".join(t))