From f88ca87ca9fabd3149f9d538a517e8bb06ce4a12 Mon Sep 17 00:00:00 2001 From: Bruno Lopes Date: Fri, 18 Apr 2025 14:00:14 -0300 Subject: [PATCH] build/windows: Restrict clean() output of bundling script This is the python version of c748b3d2 --- build/windows/2_bundle-gimp-uni_base.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/build/windows/2_bundle-gimp-uni_base.py b/build/windows/2_bundle-gimp-uni_base.py index 89994eab09..5f21ba35dd 100644 --- a/build/windows/2_bundle-gimp-uni_base.py +++ b/build/windows/2_bundle-gimp-uni_base.py @@ -46,10 +46,13 @@ def bundle(src_root, pattern): def clean(base_path, pattern): base_path = Path(base_path) + first_found = False for parent_path in base_path.glob(os.path.dirname(pattern)): for path in parent_path.rglob(os.path.basename(pattern)): if path.exists(): - print(f"Cleaning {path}") + if not first_found: + print(f"Cleaning {base_path}/{pattern}") + first_found = True if path.is_dir(): shutil.rmtree(path) else: