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')) 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'"))
return False
elif not likeProfile:
self.printERROR(_("wrong value for '--profile'")) self.printERROR(_("wrong value for '--profile'"))
self.printERROR( self.printERROR(
_("specify 'list' in '--profile' value for print " _("specify 'list' in '--profile' value for print "
"all available assembled distro")) "all available assembled distro"))
else:
self.printERROR(_("need specify '--profile'"))
return False return False
else: else:
self.printERROR( self.printERROR(

Loading…
Cancel
Save