From efb6a522bfc4b8fe390122f80ba448418367acde Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Philip=20M=C3=BCller?= Date: Wed, 8 May 2024 11:17:13 +0000 Subject: [PATCH] [postcfg] get rid of distutils --- src/modules/postcfg/main.py | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) diff --git a/src/modules/postcfg/main.py b/src/modules/postcfg/main.py index 06c7bf220..275d63cd6 100644 --- a/src/modules/postcfg/main.py +++ b/src/modules/postcfg/main.py @@ -23,8 +23,7 @@ import libcalamares import subprocess import os -from shutil import copy2 -from distutils.dir_util import copy_tree +from shutil import copy2, copytree from os.path import join, exists from libcalamares.utils import target_env_call @@ -68,7 +67,7 @@ class ConfigController: def copy_folder(self, source, target): if exists("/" + source): - copy_tree("/" + source, join(self.root, target), preserve_symlinks=1) + copytree("/" + source, join(self.root, target), preserve_symlinks=1) def remove_pkg(self, pkg, path): if exists(join(self.root, path)):