about summary refs log tree commit diff
path: root/src/bootstrap/bootstrap.py
diff options
context:
space:
mode:
authoronur-ozkan <work@onurozkan.dev>2024-09-17 07:53:19 +0300
committeronur-ozkan <work@onurozkan.dev>2024-09-17 07:53:19 +0300
commitd2c58ec6c4b23cbaa3b68ff3fb10853e6a59a45c (patch)
tree9a22f85a8868dfe5b026c37553a7a0f23e26abfa /src/bootstrap/bootstrap.py
parent170d6cb845c8c3f0dcec5cdd4210df9ecf990244 (diff)
downloadrust-d2c58ec6c4b23cbaa3b68ff3fb10853e6a59a45c.tar.gz
rust-d2c58ec6c4b23cbaa3b68ff3fb10853e6a59a45c.zip
delete sub directory "debug" to not delete the change-id file
Signed-off-by: onur-ozkan <work@onurozkan.dev>
Diffstat (limited to 'src/bootstrap/bootstrap.py')
-rw-r--r--src/bootstrap/bootstrap.py6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/bootstrap/bootstrap.py b/src/bootstrap/bootstrap.py
index 666df49012c..04909cd7921 100644
--- a/src/bootstrap/bootstrap.py
+++ b/src/bootstrap/bootstrap.py
@@ -625,9 +625,9 @@ class RustBuild(object):
             try:
                 # FIXME: A cheap workaround for https://github.com/rust-lang/rust/issues/125578,
                 # remove this once the issue is closed.
-                bootstrap_out = self.bootstrap_out()
-                if os.path.exists(bootstrap_out):
-                    shutil.rmtree(bootstrap_out)
+                bootstrap_build_artifacts = os.path.join(self.bootstrap_out(), "debug")
+                if os.path.exists(bootstrap_build_artifacts):
+                    shutil.rmtree(bootstrap_build_artifacts)
 
                 p.map(unpack_component, tarballs_download_info)
             finally: