From e519846c0350f255e208bb75678c2b5beba55efb Mon Sep 17 00:00:00 2001 From: Mike McLean Date: May 16 2016 18:02:07 +0000 Subject: use correct livemedia isoname throughout --- diff --git a/builder/kojid b/builder/kojid index ed7fa3f..5abab35 100755 --- a/builder/kojid +++ b/builder/kojid @@ -3029,9 +3029,9 @@ class LiveMediaTask(ImageTask): '--iso-only', ]) - img_name='%s-%s-%s-%s.iso' % (name, arch, version, release) + isoname='%s-%s-%s-%s.iso' % (name, arch, version, release) title = self.opts.get('title', name) - cmd.extend(['--iso-name', img_name, + cmd.extend(['--iso-name', isoname, '--releasever', version, '--title', title, ]) @@ -3080,15 +3080,12 @@ class LiveMediaTask(ImageTask): raise koji.LiveMediaError, 'could not find iso file in chroot' isosrc = os.path.join(rootresultsdir, isofile) - # copy the iso out of the chroot. If we were given an isoname, - # this is where the renaming happens. - self.logger.debug('uploading image: %s' % isosrc) - isoname = '%s-%s-%s.iso' % (name, version, release) # Generate the file manifest of the image, upload the results manifest = os.path.join(broot.resultdir(), 'manifest.log') self.genISOManifest(isosrc, manifest) self.uploadFile(manifest) + self.logger.debug('uploading image: %s' % isosrc) self.uploadFile(isosrc, remoteName=isoname) imgdata = {'arch': arch,