From 7dc76be687e7d1fa2035db75a950a1f5f88d1203 Mon Sep 17 00:00:00 2001 From: Jesse Keating Date: Tue, 10 Feb 2009 15:03:29 -0800 Subject: [PATCH] Name the checksum file after the isos being generated. --- src/pypungi/__init__.py | 19 ++++++++++--------- 1 file changed, 10 insertions(+), 9 deletions(-) diff --git a/src/pypungi/__init__.py b/src/pypungi/__init__.py index 3bedc319..c35e2c9e 100644 --- a/src/pypungi/__init__.py +++ b/src/pypungi/__init__.py @@ -1054,9 +1054,12 @@ cost=500 if not self.config.get('pungi', 'arch') == 'source': pypungi.util._doRunCommand(['/usr/bin/implantisomd5', isofile], self.logger) - # shove the sha1sum into a file - sha1file = os.path.join(self.isodir, 'SHA1SUM') - self._doIsoChecksum(isofile, sha1file) + # shove the checksum into a file + csumfile = os.path.join(self.isodir, '%s-%s-%s-CHECKSUM' % ( + self.config.get('pungi', 'iso_basename'), + self.config.get('pungi', 'version'), + self.config.get('pungi', 'arch'))) + self._doIsoChecksum(isofile, csumfile) # return the .discinfo file if not self.config.get('pungi', 'arch') == 'source': @@ -1113,9 +1116,8 @@ cost=500 if not self.config.get('pungi', 'arch') == 'source': pypungi.util._doRunCommand(['/usr/bin/implantisomd5', isofile], self.logger) - # shove the sha1sum into a file - sha1file = os.path.join(self.isodir, 'SHA1SUM') - self._doIsoChecksum(isofile, sha1file) + # shove the checksum into a file + self._doIsoChecksum(isofile, csumfile) # keep track of the CD images we've written isolist.append(self.mkrelative(isofile)) @@ -1133,9 +1135,8 @@ cost=500 # link the boot iso to the iso dir pypungi.util._link(os.path.join(self.topdir, 'images', 'boot.iso'), isofile, self.logger) - # shove the sha1sum into a file - sha1file = os.path.join(self.isodir, 'SHA1SUM') - self._doIsoChecksum(isofile, sha1file) + # shove the checksum into a file + self._doIsoChecksum(isofile, csumfile) # Do some clean up dirs = os.listdir(self.archdir)