createrepo-0.9.8-cachefix
authorGui Chen <gui.chen@intel.com>
Sun, 12 Oct 2014 23:03:51 +0000 (23:03 +0000)
committerGui Chen <gui.chen@intel.com>
Sun, 12 Oct 2014 23:03:51 +0000 (23:03 +0000)
createrepo/yumbased.py

index 0369968653827d5a0d4ea0e1ebad7d4104cefa62..e94b3a53a794db02e74ed9f1170ed999cca72693 100644 (file)
@@ -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))