remove the topurl option to spin-livecd
This commit is contained in:
parent
f47af01a40
commit
78e9e65ddf
2 changed files with 5 additions and 11 deletions
|
|
@ -2259,26 +2259,23 @@ class LiveCDTask(BaseTaskHandler):
|
|||
baseurl=user_repo, name='koji_override_%s' % index))
|
||||
index += 1
|
||||
else:
|
||||
if opts['topurl']:
|
||||
topurl = opts['topurl']
|
||||
else:
|
||||
topurl = getattr(options, 'topurl')
|
||||
topurl = getattr(options, 'topurl')
|
||||
if not topurl:
|
||||
raise koji.GenericError, 'topurl needs to be defined!'
|
||||
raise koji.LiveCDError, 'topurl must be defined in kojid.conf'
|
||||
path_info = koji.PathInfo(topdir=topurl)
|
||||
repopath = path_info.repo(repo_info['id'],
|
||||
target_info['build_tag_name'])
|
||||
target_info['build_tag_name'])
|
||||
baseurl = '%s/%s' % (repopath, arch)
|
||||
self.logger.debug('BASEURL: %s' % baseurl)
|
||||
ks.handler.repo.repoList.append(ksrepo.F8_RepoData(
|
||||
baseurl=baseurl, name='koji'))
|
||||
baseurl=baseurl, name='koji'))
|
||||
|
||||
# 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')
|
||||
kspath = os.path.join(broot.rootdir(), kskoji[1:])
|
||||
outfile = open(kspath, 'w')
|
||||
outfile.write(ks.handler.__str__())
|
||||
outfile.write(str(ks.handler))
|
||||
outfile.close()
|
||||
|
||||
# put the new ksfile in the output directory
|
||||
|
|
|
|||
3
cli/koji
3
cli/koji
|
|
@ -3830,8 +3830,6 @@ def handle_spin_livecd(options, session, args):
|
|||
help=_("Run the livecd creation task at a lower priority"))
|
||||
parser.add_option("--isoname",
|
||||
help=_("Use a custom name for the iso file"))
|
||||
parser.add_option("--topurl",
|
||||
help=_("Specify a topurl, override that which is in kojid.conf"))
|
||||
parser.add_option("--scmurl",
|
||||
help=_("The SCM URL to the kickstart file"))
|
||||
parser.add_option("--scratch", action="store_true",
|
||||
|
|
@ -3890,7 +3888,6 @@ def handle_spin_livecd(options, session, args):
|
|||
livecd_opts['scmurl'] = task_options.scmurl
|
||||
livecd_opts['isoname'] = task_options.isoname
|
||||
livecd_opts['scratch'] = task_options.scratch
|
||||
livecd_opts['topurl'] = task_options.topurl
|
||||
livecd_opts['repo'] = task_options.repo
|
||||
|
||||
# finally, create the task. Flow continues in kojihub::livecd.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue