From 47d6667454f89516f86ebebd272cfc01282e4d66 Mon Sep 17 00:00:00 2001 From: onur-ozkan Date: Wed, 23 Oct 2024 08:56:54 +0300 Subject: [PATCH] do not remove `.cargo` directroy Signed-off-by: onur-ozkan --- src/bootstrap/bootstrap.py | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py index 04909cd792147..d7ae0299dd696 100644 --- a/src/bootstrap/bootstrap.py +++ b/src/bootstrap/bootstrap.py @@ -1092,9 +1092,6 @@ def check_vendored_status(self): if not os.path.exists(cargo_dir): eprint('ERROR: vendoring required, but .cargo/config does not exist.') raise Exception("{} not found".format(cargo_dir)) - else: - if os.path.exists(cargo_dir): - shutil.rmtree(cargo_dir) def parse_args(args): """Parse the command line arguments that the python script needs."""