From 90ef65f192371ac801b9d41a2bcbd6bc2c309d28 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Tue, 10 Feb 2009 14:50:46 -0800 Subject: [PATCH] Use sha256 for iso checksums --- src/pypungi/__init__.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/pypungi/__init__.py b/src/pypungi/__init__.py index 3aa666c9..045baa81 100644 --- a/src/pypungi/__init__.py +++ b/src/pypungi/__init__.py @@ -934,9 +934,9 @@ cost=500 self.logger.error("Could not open checksum file: %s" % csumfile) self.logger.info("Generating checksum of %s" % path) - checksum = pypungi.util._doCheckSum(path, 'sha1', self.logger) + checksum = pypungi.util._doCheckSum(path, 'sha256', self.logger) if checksum: - checkfile.write("%s *%s\n" % (checksum.replace('sha1:', ''), os.path.basename(path))) + checkfile.write("%s *%s\n" % (checksum.replace('sha256:', ''), os.path.basename(path))) else: self.logger.error('Failed to generate checksum for %s' % checkfile) sys.exit(1)