Use sha256 in the treeinfo file

This commit is contained in:
Jesse Keating 2009-02-10 14:52:01 -08:00
parent 90ef65f192
commit 9b77cea3b7

View File

@ -715,7 +715,7 @@ class Pungi(pypungi.PungiBase):
# don't bother summing directories. Won't work.
if os.path.isdir(path):
continue
sum = pypungi.util._doCheckSum(path, 'sha1', self.logger)
sum = pypungi.util._doCheckSum(path, 'sha256', self.logger)
outpath = path.replace(basepath, '')
sums.append((outpath, sum))
@ -728,7 +728,7 @@ class Pungi(pypungi.PungiBase):
# Get a checksum of repomd.xml since it has within it sums for other files
repomd = os.path.join(self.topdir, 'repodata', 'repomd.xml')
sum = pypungi.util._doCheckSum(repomd, 'sha1', self.logger)
sum = pypungi.util._doCheckSum(repomd, 'sha256', self.logger)
sums.append((os.path.join('repodata', 'repomd.xml'), sum))
# Now add the sums, and write the config out