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(