about summary refs log tree commit diff
path: root/src/bootstrap/bootstrap.py
diff options
context:
space:
mode:
authoronur-ozkan <work@onurozkan.dev>2024-10-23 08:56:54 +0300
committeronur-ozkan <work@onurozkan.dev>2024-10-23 08:56:54 +0300
commit47d6667454f89516f86ebebd272cfc01282e4d66 (patch)
treea795e9f2a2fe127d4b4854e32192f34d1b2e21a4 /src/bootstrap/bootstrap.py
parentdf1b5d3cc2117f1ee96abca25678bc5f5604d450 (diff)
downloadrust-47d6667454f89516f86ebebd272cfc01282e4d66.tar.gz
rust-47d6667454f89516f86ebebd272cfc01282e4d66.zip
do not remove `.cargo` directroy
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Diffstat (limited to 'src/bootstrap/bootstrap.py')
-rw-r--r--src/bootstrap/bootstrap.py3
1 files changed, 0 insertions, 3 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py
index 04909cd7921..d7ae0299dd6 100644
--- a/src/bootstrap/bootstrap.py
+++ b/src/bootstrap/bootstrap.py
@@ -1092,9 +1092,6 @@ class RustBuild(object):
             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."""