Fix message for missing '--profile'.

Mike Hiretsky 14 years ago
parent fd5539bc66
commit ee541c7506

@ -545,14 +545,14 @@ class cl_builder(color_print):
self.clVars.Get('cl_builder_distro')) self.clVars.Get('cl_builder_distro'))
if len(likeProfile) != 1: if len(likeProfile) != 1:
if newprofile != "list": if newprofile != "list":
if not likeProfile: if not newprofile:
if newprofile: self.printERROR(_("need specify '--profile'"))
self.printERROR(_("wrong value for '--profile'")) return False
self.printERROR( elif not likeProfile:
_("specify 'list' in '--profile' value for print " self.printERROR(_("wrong value for '--profile'"))
"all available assembled distro")) self.printERROR(
else: _("specify 'list' in '--profile' value for print "
self.printERROR(_("need specify '--profile'")) "all available assembled distro"))
return False return False
else: else:
self.printERROR( self.printERROR(

Loading…
Cancel
Save