From fbd8da6d4005dd15197af6bf848ec2a8d3e4b759 Mon Sep 17 00:00:00 2001 From: Martin Gracik Date: Tue, 22 Mar 2011 17:36:46 +0100 Subject: [PATCH] Have to call os.makedirs --- src/pylorax/images.py | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) diff --git a/src/pylorax/images.py b/src/pylorax/images.py index 6a910fe3..e2f2cd61 100644 --- a/src/pylorax/images.py +++ b/src/pylorax/images.py @@ -157,9 +157,8 @@ class PPC(object): # create ppc dir os.makedirs(joinpaths(self.outputroot, ppcdir)) - if (kernel_arch == "ppc"): - # create mac dir - os.makedirs(joinpaths(self.outputroot, MACDIR)) + # create mac dir + os.makedirs(joinpaths(self.outputroot, MACDIR)) # create netboot dir os.makedirs(joinpaths(self.outputroot, NETBOOTDIR)) @@ -744,7 +743,7 @@ class SPARC(object): def create_boot(self, efiboot=None): # create isopath dir isopathdir = joinpaths(self.outputroot, ISOPATHDIR) - makedirs(isopathdir) + os.makedirs(isopathdir) # copy sparc dir to isopath dir shutil.copytree(joinpaths(self.outputroot, SPARCDIR),