From c10374ddc6c5077472bddfa3658294f3c509791c Mon Sep 17 00:00:00 2001 From: "Carl D. Roth" Date: Mon, 24 Oct 2016 16:51:52 -0700 Subject: [PATCH] Fixed cpR implementation --- .../src/python/onl/install/InstallUtils.py | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/packages/base/all/vendor-config-onl/src/python/onl/install/InstallUtils.py b/packages/base/all/vendor-config-onl/src/python/onl/install/InstallUtils.py index 9ce429fc..3f1ead96 100644 --- a/packages/base/all/vendor-config-onl/src/python/onl/install/InstallUtils.py +++ b/packages/base/all/vendor-config-onl/src/python/onl/install/InstallUtils.py @@ -188,15 +188,13 @@ class SubprocessMixin: subdir = src[len(srcRoot)+1:] dst = os.path.join(dstRoot, subdir) if not os.path.exists(dst): - self.log.debug("+ /bin/mkdir -p %s", dst) - os.mkdirs(dst) + self.makedirs(dst) for fe in fl: - src = os.path.join(r, de) + src = os.path.join(r, fe) subdir = src[len(srcRoot)+1:] dst = os.path.join(dstRoot, subdir) - self.log.debug("+ /bin/cp -a %s %s", src, dst) - shutil.copy2(src, dst) + self.copy2(src, dst) class TempdirContext(SubprocessMixin):