Make sure we don't include the 'sha1:' in the iso SHA1SUM file.

This commit is contained in:
Jesse Keating 2008-09-30 15:46:59 -07:00
parent a157c94252
commit c550c16f62
1 changed files with 1 additions and 1 deletions

View File

@ -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)