|
|
@ -540,15 +540,32 @@ class cl_builder(color_print):
|
|
|
|
distros = self.clVars.Get('cl_builder_distro')
|
|
|
|
distros = self.clVars.Get('cl_builder_distro')
|
|
|
|
if len(distros) == 1:
|
|
|
|
if len(distros) == 1:
|
|
|
|
newprofile = distros[0]
|
|
|
|
newprofile = distros[0]
|
|
|
|
if not newprofile in self.clVars.Get('cl_builder_distro'):
|
|
|
|
newprofile = newprofile or ""
|
|
|
|
if newprofile:
|
|
|
|
likeProfile = filter(lambda x:newprofile in x,
|
|
|
|
self.printERROR(_("wrong value for '--profile'"))
|
|
|
|
self.clVars.Get('cl_builder_distro'))
|
|
|
|
|
|
|
|
if len(likeProfile) != 1:
|
|
|
|
|
|
|
|
if newprofile != "list":
|
|
|
|
|
|
|
|
if not likeProfile:
|
|
|
|
|
|
|
|
if newprofile:
|
|
|
|
|
|
|
|
self.printERROR(_("wrong value for '--profile'"))
|
|
|
|
|
|
|
|
self.printERROR(
|
|
|
|
|
|
|
|
_("specify 'list' in '--profile' value for print "
|
|
|
|
|
|
|
|
"all available assembled distro"))
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
self.printERROR(_("need specify '--profile'"))
|
|
|
|
|
|
|
|
return False
|
|
|
|
|
|
|
|
else:
|
|
|
|
|
|
|
|
self.printERROR(
|
|
|
|
|
|
|
|
_("specified value of '--profile' is ambiguous. "
|
|
|
|
|
|
|
|
"Please specify profile more exactly."))
|
|
|
|
|
|
|
|
self.defaultPrint(_("Select profile from")+":\n")
|
|
|
|
else:
|
|
|
|
else:
|
|
|
|
self.printERROR(_("need specify '--profile'"))
|
|
|
|
likeProfile = self.clVars.Get('cl_builder_distro')
|
|
|
|
self.defaultPrint(_("Available assembled distro")+":\n")
|
|
|
|
self.defaultPrint(_("Available assembled distro")+":\n")
|
|
|
|
for profile in self.clVars.Get('cl_builder_distro'):
|
|
|
|
for profile in likeProfile:
|
|
|
|
self.printSUCCESS(profile)
|
|
|
|
self.printSUCCESS(profile)
|
|
|
|
return False
|
|
|
|
return False
|
|
|
|
|
|
|
|
newprofile = likeProfile[0]
|
|
|
|
self.clVars.Set('os_builder_profile', newprofile, True)
|
|
|
|
self.clVars.Set('os_builder_profile', newprofile, True)
|
|
|
|
self.assembleIso = True
|
|
|
|
self.assembleIso = True
|
|
|
|
self.clVars.Set('cl_builder_path', _toUNICODE(envData.getVar(newprofile,
|
|
|
|
self.clVars.Set('cl_builder_path', _toUNICODE(envData.getVar(newprofile,
|
|
|
|