From: James Antill Date: Fri, 17 Apr 2009 18:22:49 +0000 (-0400) Subject: Use the same checksum type for the key, as for the data in the key X-Git-Tag: upstream/0.9.9~68 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=6ab7964d633cadbecb387b98353342b19f178a28;p=tools%2Fcreaterepo.git Use the same checksum type for the key, as for the data in the key --- diff --git a/createrepo/yumbased.py b/createrepo/yumbased.py index b820fd8..32eed04 100644 --- a/createrepo/yumbased.py +++ b/createrepo/yumbased.py @@ -60,7 +60,7 @@ class CreateRepoPackage(YumLocalPackage): if type(self.hdr[rpm.RPMTAG_HDRID]) is not types.NoneType: t.append("".join(self.hdr[rpm.RPMTAG_HDRID])) - kcsum = misc.Checksums() + kcsum = misc.Checksums(checksums=[self.checksum_type]) kcsum.update("".join(t)) key = kcsum.hexdigest()