Fix apply clt templates for installed system.

develop
Mike Hiretsky 13 years ago
parent 2792ef4cda
commit 428d968e1e

@ -5252,7 +5252,8 @@ class templateClt(scanDirectoryClt, template):
if self.objVar.Get("cl_name") in applyPackages:
self.flagApplyTemplates = True
# Базовая директория переноса шаблонов "/mnt/calculate" или "/" и.т.д
self._baseDir = pathJoin(self.objVar.Get("cl_chroot_path"),
self._chrootDir = os.path.normpath(self.objVar.Get("cl_chroot_path"))
self._baseDir = pathJoin(self._chrootDir,
self.objVar.Get("cl_root_path"))
self._baseDir = os.path.normpath(self._baseDir)
@ -5368,7 +5369,7 @@ class templateClt(scanDirectoryClt, template):
self.numberAllTemplates(self.allTemplates)
# Обрабатываем шаблоны
for dirTemplate in dirsTemplates:
if self.scanningTemplates(dirTemplate, "/") is False:
if self.scanningTemplates(dirTemplate, self._chrootDir) is False:
return False
return (self.createdDirs, self.filesApply)

Loading…
Cancel
Save