From 363a28f56126554659f0703ced62f735b0e0e6ef Mon Sep 17 00:00:00 2001 From: Dominika Vesela Date: Thu, 7 Aug 2025 10:31:21 +0200 Subject: [PATCH] Ignore errors for rmtree after archive extraction The folder was there and it was empty. It looks like https://github.com/python/cpython/issues/128076. Signed-off-by: Dominika Vesela (cherry picked from commit 6569e5726298af8fdb5f6d54cd37b1b3d409de8d) --- pungi/runroot.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pungi/runroot.py b/pungi/runroot.py index 4f08ce75..af65a2e2 100644 --- a/pungi/runroot.py +++ b/pungi/runroot.py @@ -459,4 +459,4 @@ def download_and_extract_archive(compose, task_id, fname, destination): local_path = _download_archive(task_id, fname, archive_url, tmp_dir) _extract_archive(task_id, fname, local_path, destination) finally: - shutil.rmtree(tmp_dir) + shutil.rmtree(tmp_dir, ignore_errors=True)