fix a couple typos

This commit is contained in:
Mike Bonnet 2007-05-09 11:41:26 -04:00
parent d2aaaef42f
commit 4c2cce0246
2 changed files with 4 additions and 4 deletions

View file

@ -1544,11 +1544,11 @@ class BuildTask(BaseTaskHandler):
# get list of arches to build for
buildconfig = session.getBuildConfig(build_tag)
arches = buildconfig['arches']
tag_archlist = [koji.canonArch(a) for a in arches.split()]
self.logger.debug('arches: %s' % arches)
if arches is None:
if not arches:
#XXX - need to handle this better
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:
self.logger.debug('Got extra arches: %s' % extra)
arches = "%s %s" % (arches,extra)

View file

@ -1854,7 +1854,7 @@ def handle_add_target(options, session, args):
name = args[0]
build_tag = args[1]
if len(args) > 2:
dest_tag = args[3]
dest_tag = args[2]
else:
#most targets have the same name as their destination
dest_tag = name