From c074732c42225923601f8a7e3a843347291b3e5b Mon Sep 17 00:00:00 2001 From: Torsten Rasmussen Date: Wed, 16 Jan 2019 09:59:28 +0100 Subject: [PATCH] bootstrapper: Ignore errors on temp folder cleanup A git clone of manifest repository into temporary folder on windows will contain read-only files. This will cause shutil.rmtree to fail and abort bootstrapping. Current fix is to ignore such errors on windows and rely on windows temp folder cleanup. Signed-off-by: Torsten Rasmussen --- src/west/_bootstrap/main.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/west/_bootstrap/main.py b/src/west/_bootstrap/main.py index 1ca11f6..c160ce0 100644 --- a/src/west/_bootstrap/main.py +++ b/src/west/_bootstrap/main.py @@ -251,7 +251,7 @@ def bootstrap(args): tempdir] wrap(cmd) finally: - shutil.rmtree(tempdir) + shutil.rmtree(tempdir, ignore_errors=True) print('=== West initialized. Now run "west clone" in {}. ==='. format(directory))