Fix message for missing '--profile'.

master
Mike Hiretsky 14 years ago
parent fd5539bc66
commit ee541c7506

@ -545,14 +545,14 @@ class cl_builder(color_print):
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'"))
if not newprofile:
self.printERROR(_("need specify '--profile'"))
return False
elif not likeProfile:
self.printERROR(_("wrong value for '--profile'"))
self.printERROR(
_("specify 'list' in '--profile' value for print "
"all available assembled distro"))
return False
else:
self.printERROR(

Loading…
Cancel
Save