diff --git a/Authors b/Authors index 57ac8abe..bb8937c8 100644 --- a/Authors +++ b/Authors @@ -7,3 +7,4 @@ Contributors: Will Woods Essien Ita Essien James Bowes +Tom Callaway diff --git a/Changelog b/Changelog index 9ef6d4d9..64989734 100644 --- a/Changelog +++ b/Changelog @@ -1,5 +1,6 @@ * Tue May 15 2007 Jesse Keating - Don't quote ISO label, not running mkisofs in shell +- Apply sparc patches (spot) * Fri Apr 06 2007 Jesse Keating - Fix comments in config file diff --git a/pypungi/gather.py b/pypungi/gather.py index 60edd462..57cb7a16 100755 --- a/pypungi/gather.py +++ b/pypungi/gather.py @@ -40,6 +40,9 @@ class Gather(yum.YumBase): elif config.get('default', 'arch') == 'ppc': arches = yum.rpmUtils.arch.getArchList('ppc64') self.compatarch = 'ppc64' + elif config.get('default', 'arch') == 'sparc': + arches = yum.rpmUtils.arch.getArchList('sparc64v') + self.compatarch = 'sparc64v' else: arches = yum.rpmUtils.arch.getArchList(config.get('default', 'arch')) self.compatarch = config.get('default', 'arch') diff --git a/pypungi/pungi.py b/pypungi/pungi.py index 0723d128..3f74669a 100755 --- a/pypungi/pungi.py +++ b/pypungi/pungi.py @@ -338,6 +338,8 @@ class Pungi: ppcbootargs.append('-hfs-bless') # must be last + sparcbootargs = ['-G', '/boot/isofs.b', '-B', '...', '-s', '/boot/silo.conf', '-sparc-label', '"sparc"'] + if self.config.getint('default', 'discs') > 1: for disc in range(1, self.config.getint('default', 'discs') + 1): # cycle through the CD isos isoname = '%s-%s-%s-disc%s.iso' % (self.config.get('default', 'iso_basename'), self.config.get('default', 'version'), @@ -354,6 +356,8 @@ class Pungi: elif self.config.get('default', 'arch') == 'ppc': extraargs.extend(ppcbootargs) extraargs.append(os.path.join('%s-disc%s' % (self.topdir, disc), "ppc/mac")) + elif self.config.get('default', 'arch') == 'sparc': + extraargs.extend(sparcbootargs) extraargs.append('-V') extraargs.append('%s %s %s Disc %s' % (self.config.get('default', 'product_name'), @@ -415,6 +419,8 @@ class Pungi: extraargs.append(os.path.join(self.topdir, "ppc/mac")) # this may work for both cases.. test else: extraargs.append(os.path.join('%s-disc%s' % (self.topdir, disc), "ppc/mac")) + elif self.config.get('default', 'arch') == 'sparc': + extraargs.extend(sparcbootargs) extraargs.append('-V') extraargs.append('%s %s %s DVD' % (self.config.get('default', 'product_name'), @@ -481,6 +487,8 @@ class Pungi: elif self.config.get('default', 'arch') == 'ppc': extraargs.extend(ppcbootargs) extraargs.append(os.path.join(self.workdir, "%s-rescueimage" % self.config.get('default', 'arch'), "ppc/mac")) + elif self.config.get('default', 'arch') == 'sparc': + extraargs.extend(sparcbootargs) extraargs.append('-V') extraargs.append('%s %s %s Rescue' % (self.config.get('default', 'product_name'),