Fix bug of unmount target. (Clt template)

Added call closeFiles for object of cltTemplate.
netsetup
Mike Hiretsky 14 years ago
parent a4f513e013
commit 53a88c7c72

@ -943,6 +943,13 @@ class cl_install(color_print):
target.multipartition=objMultiPartitions
return target
def closeClTemplate(self):
if self.clTempl:
if self.clTempl.cltObj:
self.clTempl.cltObj.closeFiles()
self.clTempl.closeFiles()
self.clTempl = None
def applyTemplates(self,directory):
"""Apply templates for root of system."""
#self.clVars.Set("cl_root_path",directory, True)
@ -1837,8 +1844,7 @@ the system") + " (yes/no)"
if error:
self.printByResult(False)
try:
if self.clTempl:
self.clTempl.closeFiles()
self.closeClTemplate()
if sourceDistr:
self.printMessageForTest(_("Releasing source distributive"))
sourceDistr.close()

Loading…
Cancel
Save