From e101067357390a4609e9e3f56ad1589405683f60 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Wed, 10 Sep 2008 15:36:49 -0700 Subject: [PATCH] Make sure we output sha1sums in binary mode. This helps windows. --- src/pypungi/__init__.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/pypungi/__init__.py b/src/pypungi/__init__.py index b28114e0..c074db87 100644 --- a/src/pypungi/__init__.py +++ b/src/pypungi/__init__.py @@ -911,7 +911,7 @@ cost=500 self.logger.info("Generating sha1sum of %s" % path) sha1sum = pypungi.util._doCheckSum(path, 'sha1', self.logger) if sha1sum: - sha1file.write("%s %s\n" % (sha1sum, os.path.basename(path))) + sha1file.write("%s *%s\n" % (sha1sum, os.path.basename(path))) else: self.logger.error('Failed to generate sha1sum for %s' % sha1file) sys.exit(1)