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:
parent
71992b53d5
commit
c074732c42
|
@ -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))
|
||||||
|
|
Loading…
Reference in New Issue