diff --git a/src/pypungi/__init__.py b/src/pypungi/__init__.py index 9b358fd2..e8530b9c 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.replace('sha1:', ''), os.path.basename(path))) else: self.logger.error('Failed to generate sha1sum for %s' % sha1file) sys.exit(1)