From 0017df327cdcbb490cc111c9c830d85a086363c0 Mon Sep 17 00:00:00 2001 From: Philip Mueller Date: Wed, 8 May 2024 20:24:20 +0700 Subject: [PATCH] [postcfg] fix copytree --- src/modules/postcfg/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/postcfg/main.py b/src/modules/postcfg/main.py index 275d63cd6..5589addc1 100644 --- a/src/modules/postcfg/main.py +++ b/src/modules/postcfg/main.py @@ -67,7 +67,7 @@ class ConfigController: def copy_folder(self, source, target): if exists("/" + source): - copytree("/" + source, join(self.root, target), preserve_symlinks=1) + copytree("/" + source, join(self.root, target), symlinks=True, ignore_dangling_symlinks=True, dirs_exist_ok=True) def remove_pkg(self, pkg, path): if exists(join(self.root, path)):