From ee541c7506bc90ec839e4c8b547e5b623a85a8d1 Mon Sep 17 00:00:00 2001 From: Mike Hiretsky Date: Mon, 15 Nov 2010 13:06:48 +0300 Subject: [PATCH] Fix message for missing '--profile'. --- pym/cl_builder.py | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/pym/cl_builder.py b/pym/cl_builder.py index cee01e6..e5689bd 100644 --- a/pym/cl_builder.py +++ b/pym/cl_builder.py @@ -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(