createrepo/yumbased.py

[email protected] (James Antill)
Newsgroups gmane.linux.rpm.metadata
Message-ID <[email protected]>
 createrepo/yumbased.py |    2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

New commits:
commit 6ab7964d633cadbecb387b98353342b19f178a28
Author: James Antill <[email protected]>
Date:   Fri Apr 17 14:22:49 2009 -0400

    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()
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.