fix a couple typos
This commit is contained in:
parent
d2aaaef42f
commit
4c2cce0246
2 changed files with 4 additions and 4 deletions
|
|
@ -1544,11 +1544,11 @@ class BuildTask(BaseTaskHandler):
|
||||||
# get list of arches to build for
|
# get list of arches to build for
|
||||||
buildconfig = session.getBuildConfig(build_tag)
|
buildconfig = session.getBuildConfig(build_tag)
|
||||||
arches = buildconfig['arches']
|
arches = buildconfig['arches']
|
||||||
tag_archlist = [koji.canonArch(a) for a in arches.split()]
|
if not arches:
|
||||||
self.logger.debug('arches: %s' % arches)
|
|
||||||
if arches is None:
|
|
||||||
#XXX - need to handle this better
|
#XXX - need to handle this better
|
||||||
raise koji.BuildError, "No arches for tag %(name)s [%(id)s]" % buildconfig
|
raise koji.BuildError, "No arches for tag %(name)s [%(id)s]" % buildconfig
|
||||||
|
tag_archlist = [koji.canonArch(a) for a in arches.split()]
|
||||||
|
self.logger.debug('arches: %s' % arches)
|
||||||
if extra:
|
if extra:
|
||||||
self.logger.debug('Got extra arches: %s' % extra)
|
self.logger.debug('Got extra arches: %s' % extra)
|
||||||
arches = "%s %s" % (arches,extra)
|
arches = "%s %s" % (arches,extra)
|
||||||
|
|
|
||||||
2
cli/koji
2
cli/koji
|
|
@ -1854,7 +1854,7 @@ def handle_add_target(options, session, args):
|
||||||
name = args[0]
|
name = args[0]
|
||||||
build_tag = args[1]
|
build_tag = args[1]
|
||||||
if len(args) > 2:
|
if len(args) > 2:
|
||||||
dest_tag = args[3]
|
dest_tag = args[2]
|
||||||
else:
|
else:
|
||||||
#most targets have the same name as their destination
|
#most targets have the same name as their destination
|
||||||
dest_tag = name
|
dest_tag = name
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue