diff --git a/pym/cl_builder.py b/pym/cl_builder.py index 24e09c6..9279f80 100644 --- a/pym/cl_builder.py +++ b/pym/cl_builder.py @@ -534,7 +534,7 @@ class cl_builder(color_print): {'from':source,'to':target}) self.printByResult(True) - def setAssembleData(self,newprofile): + def setAssembleData(self,newprofile,printVars=None): """Get assemble data from assemble.env""" envData = iniParser(self.envFile) if newprofile == None: @@ -553,6 +553,8 @@ class cl_builder(color_print): likeProfile = filter(reProfile.search, self.clVars.Get('cl_builder_distro')) if len(likeProfile) != 1: + if printVars: + return True if newprofile != "list": if not newprofile: self.printERROR(_("need specify '--profile'")) diff --git a/pym/cl_image_cmd.py b/pym/cl_image_cmd.py index e1178f5..83fb2eb 100644 --- a/pym/cl_image_cmd.py +++ b/pym/cl_image_cmd.py @@ -114,7 +114,7 @@ class image_cmd(share_cmd): if not self.isScratch(False) \ and self.logicObj.clVars.Get('cl_builder_distro'): - if not self.logicObj.setAssembleData(values.p): + if not self.logicObj.setAssembleData(values.p,values.v): sys.exit(1) if args and args[0] == "squash":