Make sure we output sha1sums in binary mode. This helps windows.

This commit is contained in:
Jesse Keating 2008-09-10 15:36:49 -07:00
parent 9ca05af1e9
commit e101067357

View File

@ -911,7 +911,7 @@ cost=500
self.logger.info("Generating sha1sum of %s" % path) self.logger.info("Generating sha1sum of %s" % path)
sha1sum = pypungi.util._doCheckSum(path, 'sha1', self.logger) sha1sum = pypungi.util._doCheckSum(path, 'sha1', self.logger)
if sha1sum: if sha1sum:
sha1file.write("%s %s\n" % (sha1sum, os.path.basename(path))) sha1file.write("%s *%s\n" % (sha1sum, os.path.basename(path)))
else: else:
self.logger.error('Failed to generate sha1sum for %s' % sha1file) self.logger.error('Failed to generate sha1sum for %s' % sha1file)
sys.exit(1) sys.exit(1)