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 <torsten.rasmussen@nordicsemi.no>
This commit is contained in:
Torsten Rasmussen 2019-01-16 09:59:28 +01:00 committed by Marti Bolivar
parent 71992b53d5
commit c074732c42
1 changed files with 1 additions and 1 deletions

View File

@ -251,7 +251,7 @@ def bootstrap(args):
tempdir] tempdir]
wrap(cmd) wrap(cmd)
finally: finally:
shutil.rmtree(tempdir) shutil.rmtree(tempdir, ignore_errors=True)
print('=== West initialized. Now run "west clone" in {}. ==='. print('=== West initialized. Now run "west clone" in {}. ==='.
format(directory)) format(directory))