From bb62bfac262b83cf7831b8a98eb3a5cead0cbd92 Mon Sep 17 00:00:00 2001 From: Mike Hiretsky Date: Wed, 29 Sep 2010 17:59:16 +0000 Subject: [PATCH] Hide message about remove squash images if they absent --- pym/cl_builder.py | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/pym/cl_builder.py b/pym/cl_builder.py index 4776dc3..147394f 100644 --- a/pym/cl_builder.py +++ b/pym/cl_builder.py @@ -223,8 +223,12 @@ class cl_builder(color_print): self.printSUCCESS(_("Image will be created in: %s")% self.clVars.Get('cl_builder_iso_path')) - self.printSUCCESS(_("Follow squash images will be removed: %s\n")% - ", ".join(self.clVars.Get('cl_builder_remove_squash'))) + if self.clVars.Get('cl_builder_remove_squash'): + self.printSUCCESS( + _("Follow squash images will be removed: %s\n")% + ", ".join(self.clVars.Get('cl_builder_remove_squash'))) + else: + self.defaultPrint("\n") def checkVariables(self,rescratch=False): """Check values of variables"""