From 4b918f6c1f48515352e7c5a92ed9fdaa19e4595b Mon Sep 17 00:00:00 2001 From: Mike McLean Date: May 16 2016 18:02:06 +0000 Subject: use correct path to result iso --- diff --git a/builder/kojid b/builder/kojid index fef305e..f8f58bb 100755 --- a/builder/kojid +++ b/builder/kojid @@ -3042,7 +3042,8 @@ class LiveMediaTask(ImageTask): # Find the resultant iso # The cwd of the livemedia-creator process is /tmp in the chroot, so # that is where it writes the .iso - files = os.listdir(os.path.join(broot.rootdir(), resultdir.lstrip('/'))) + rootresultsdir = os.path.join(broot.rootdir(), resultdir.lstrip('/')) + files = os.listdir(rootresultsdir) isofile = None for afile in files: if afile.endswith('.iso'): @@ -3052,7 +3053,7 @@ class LiveMediaTask(ImageTask): raise koji.LiveMediaError, 'multiple .iso files found: %s and %s' % (isofile, afile) if not isofile: raise koji.LiveMediaError, 'could not find iso file in chroot' - isosrc = os.path.join(broot.rootdir(), 'tmp', isofile) + 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.