to avoid confused error message like:
$ touch touch.ks
$ sudo mic cr raw touch.ks
Warning: No module named zypp, skip plugin backend/zypppkgmgr
Info: Retrieving repo metadata:
DONE
Error <config>: Please specify a valid arch, your choise can be:
<Found by Marko>
thanks
msger.info("Retrieving repo metadata:")
ksrepos = misc.get_repostrs_from_ks(ks)
+ if not ksrepos:
+ raise errors.KsError('no valid repos found in ks file')
+
self.create['repomd'] = misc.get_metadata_from_repos(
ksrepos,
self.create['cachedir'])
msger.info("\nUse detected arch %s." % target_archlist[0])
else:
raise errors.ConfigError("Please specify a valid arch, "
- "your choise can be: %s" \
+ "the choice can be: %s" \
% ', '.join(archlist))
kickstart.resolve_groups(self.create, self.create['repomd'])
repolist.append(bsrepo[repo])
repomd = misc.get_metadata_from_repos(repolist, cachedir)
rpmver = misc.get_rpmver_in_repo(repomd)
- if not rpmver:
+ if not rpmver:
continue
if compare_rpmversion(repo_rpmver, rpmver):
msger.set_loglevel(lvl)
msger.info("Sync native mic to bootstrap")
copy_mic(bootstrap_env.rootdir)
- # bind mounts , opts['cachedir'], opts['tmpdir']
+ # bind mounts , opts['cachedir'], opts['tmpdir']
cwd = os.getcwd()
lst = [cwd, opts['outdir']]
if ksfile: