From b9eaa02aee5614c954b04a6fd2f237da9c409875 Mon Sep 17 00:00:00 2001 From: debianpepper Date: Fri, 25 Aug 2023 20:14:42 +0900 Subject: [PATCH] Updated Signed-off-by: debianpepper --- python_modules/build_iso.py | 1 + python_modules/infra.py | 13 +++++++------ 2 files changed, 8 insertions(+), 6 deletions(-) diff --git a/python_modules/build_iso.py b/python_modules/build_iso.py index d473b214..f18c89df 100644 --- a/python_modules/build_iso.py +++ b/python_modules/build_iso.py @@ -16,6 +16,7 @@ import paths import inflate_bubble import finish_cleanup import infra +import logging # Set the home path used regardless the user logged in diff --git a/python_modules/infra.py b/python_modules/infra.py index 7cf1d738..cc6570fb 100644 --- a/python_modules/infra.py +++ b/python_modules/infra.py @@ -13,6 +13,7 @@ from io import StringIO import collections from pathlib import Path import shutil +import logging import paths @@ -64,11 +65,10 @@ class ChrootFolders: for size_length in range(chroot_size_q): source = chroot_src_q.popleft() des = chroot_des_q.popleft() - with Processing() as output: - shutil.copytree(HOME_FOLDER + source, - HOME_FOLDER + WPCHROOT + des, - dirs_exist_ok = True - ) + shutil.copytree(HOME_FOLDER + source, + HOME_FOLDER + WPCHROOT + des, + dirs_exist_ok = True + ) @@ -226,12 +226,13 @@ def shared_folders(): ) -def icons_themes(): +def icons_themes(path, names): """ This function will get the icons and themse that are for all the builds """ print("Copy icons and themes") + logging.info('Working in %s' % path) src_paths =('/theme/Marwaita Dark Debian/', '/theme/Marwaita Dark Manjaro/', '/theme/Marwaita Dark Peppermint/',