dom0: Do not copy obsolete apps-template.templates dir on template clone
This commit is contained in:
parent
4bab5e8834
commit
817735fc92
@ -1067,7 +1067,6 @@ class QubesTemplateVm(QubesVm):
|
|||||||
self.rootcow_img = self.dir_path + "/" + default_rootcow_img
|
self.rootcow_img = self.dir_path + "/" + default_rootcow_img
|
||||||
|
|
||||||
self.appmenus_templates_dir = self.dir_path + "/" + default_appmenus_templates_subdir
|
self.appmenus_templates_dir = self.dir_path + "/" + default_appmenus_templates_subdir
|
||||||
self.appmenus_template_templates_dir = self.dir_path + "/" + default_appmenus_template_templates_subdir
|
|
||||||
self.appvms = QubesVmCollection()
|
self.appvms = QubesVmCollection()
|
||||||
|
|
||||||
@property
|
@property
|
||||||
@ -1144,10 +1143,6 @@ class QubesTemplateVm(QubesVm):
|
|||||||
format(src_template_vm.appmenus_templates_dir, self.appmenus_templates_dir)
|
format(src_template_vm.appmenus_templates_dir, self.appmenus_templates_dir)
|
||||||
shutil.copytree (src_template_vm.appmenus_templates_dir, self.appmenus_templates_dir)
|
shutil.copytree (src_template_vm.appmenus_templates_dir, self.appmenus_templates_dir)
|
||||||
|
|
||||||
if verbose:
|
|
||||||
print "--> Copying the template's appmenus (for template) templates dir:\n{0} ==>\n{1}".\
|
|
||||||
format(src_template_vm.appmenus_template_templates_dir, self.appmenus_template_templates_dir)
|
|
||||||
shutil.copytree (src_template_vm.appmenus_template_templates_dir, self.appmenus_template_templates_dir)
|
|
||||||
|
|
||||||
if os.path.exists(src_template_vm.dir_path + '/vm-' + qubes_whitelisted_appmenus):
|
if os.path.exists(src_template_vm.dir_path + '/vm-' + qubes_whitelisted_appmenus):
|
||||||
if verbose:
|
if verbose:
|
||||||
|
Loading…
Reference in New Issue
Block a user