From f6964fddfd85a72901bb4590c8c73fe3b170af99 Mon Sep 17 00:00:00 2001 From: Mike Hiretsky Date: Tue, 20 Dec 2011 11:10:12 +0400 Subject: [PATCH] Fix flash rescratch. --- pym/cl_builder.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/pym/cl_builder.py b/pym/cl_builder.py index 8070896..aac5474 100644 --- a/pym/cl_builder.py +++ b/pym/cl_builder.py @@ -140,7 +140,7 @@ class cl_builder(color_print): #self.clVars.Set("cl_root_path","/", True) self.clVars.Set("cl_action","iso", True) chrootPath=pathJoin(directory, - self.clVars.Get('cl_builder_squash_path')) + self.clVars.Get('cl_builder_squash_path')) self.clVars.Set("cl_chroot_path",chrootPath, True) self.clVars.Set("cl_root_path","..", True) self.clTempl = template(self.clVars) @@ -254,6 +254,8 @@ class cl_builder(color_print): raise BuilderError(_("Failed to unmount %s")%target) self.printByResult(True) distrPath = distr.convertToDirectory().getDirectory() + self.clVars.Set('cl_builder_squash_path', + os.path.basename(os.path.normpath(distrPath))) self.cleanNeedlessKernelData(distrPath) self.dispatchConf(distrPath)