avoid filename collisions with the user-supplied kickstart file

This commit is contained in:
Mike Bonnet 2009-09-29 14:31:32 -04:00
parent 7d954b8b22
commit bb711506a6

View file

@ -2274,7 +2274,7 @@ class LiveCDTask(BaseTaskHandler):
# Write out the new ks file. Note that things may not be in the same
# order and comments in the original ks file may be lost.
kskoji = os.path.join(tmpchroot, 'koji.ks')
kskoji = os.path.join(tmpchroot, 'koji-livecd-%s-%i.ks' % (target_info['build_tag_name'], self.id))
kspath = os.path.join(broot.rootdir(), kskoji[1:])
outfile = open(kspath, 'w')
outfile.write(str(ks.handler))