projects
/
tools
/
createrepo.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d16113
)
Use the same checksum type for the key, as for the data in the key
author
James Antill
<james@and.org>
Fri, 17 Apr 2009 18:22:49 +0000
(14:22 -0400)
committer
James Antill
<james@and.org>
Fri, 17 Apr 2009 18:22:49 +0000
(14:22 -0400)
createrepo/yumbased.py
patch
|
blob
|
history
diff --git
a/createrepo/yumbased.py
b/createrepo/yumbased.py
index b820fd8aa2075e6ad8ab423aa7c45cb8208f21e0..32eed043d8e102567b01b5b1de06fb8e5f0d7881 100644
(file)
--- 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()