From 202fb0c676ce32cb805ccc6430ba6cd27bbb111c Mon Sep 17 00:00:00 2001 From: Marek Marczykowski Date: Sat, 9 Jul 2011 00:33:48 +0200 Subject: [PATCH] dom0: fix syntax --- dom0/qvm-core/qubes.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/dom0/qvm-core/qubes.py b/dom0/qvm-core/qubes.py index 36949977..cca132d9 100755 --- a/dom0/qvm-core/qubes.py +++ b/dom0/qvm-core/qubes.py @@ -301,7 +301,7 @@ class QubesVm(object): self.appmenus_templates_dir = None if updateable: self.appmenus_templates_dir = self.dir_path + "/" + default_appmenus_templates_subdir - else if template_vm is not None: + elif template_vm is not None: self.appmenus_templates_dir = template_vm.appmenus_templates_dir # By default allow use all VCPUs @@ -718,7 +718,7 @@ class QubesVm(object): if os.path.exists(source_template.dir_path + '/vm-' + qubes_whitelisted_appmenus): if verbose: - print "--> Creating default whitelisted apps list: {0}". + print "--> Creating default whitelisted apps list: {0}".\ format(self.dir_path + '/' + qubes_whitelisted_appmenus) shutil.copy(source_template.dir_path + '/vm-' + qubes_whitelisted_appmenus, self.dir_path + '/' + qubes_whitelisted_appmenus) @@ -1151,7 +1151,7 @@ class QubesTemplateVm(QubesVm): if os.path.exists(src_template_vm.dir_path + '/vm-' + qubes_whitelisted_appmenus): if verbose: - print "--> Copying default whitelisted apps list: {0}". + print "--> Copying default whitelisted apps list: {0}".\ format(self.dir_path + '/vm-' + qubes_whitelisted_appmenus) shutil.copy(src_template_vm.dir_path + '/vm-' + qubes_whitelisted_appmenus, self.dir_path + '/vm-' + qubes_whitelisted_appmenus)