This repository was archived by the owner on May 28, 2025. It is now read-only.
File tree Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Expand file tree Collapse file tree 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -1322,8 +1322,8 @@ impl Step for Extended {
13221322 tarballs. push ( mingw_installer. unwrap ( ) ) ;
13231323 }
13241324
1325- let mut tarball = Tarball :: new ( builder, "rust" , & target. triple ) ;
1326- let work = tarball. persist_work_dir ( ) ;
1325+ let tarball = Tarball :: new ( builder, "rust" , & target. triple ) ;
1326+ let work = tarball. work_dir ( ) ;
13271327 tarball. combine ( & tarballs) ;
13281328
13291329 let tmp = tmpdir ( builder) . join ( "combined-tarball" ) ;
Original file line number Diff line number Diff line change @@ -97,7 +97,6 @@ pub(crate) struct Tarball<'a> {
9797
9898 include_target_in_component_name : bool ,
9999 is_preview : bool ,
100- delete_temp_dir : bool ,
101100}
102101
103102impl < ' a > Tarball < ' a > {
@@ -136,7 +135,6 @@ impl<'a> Tarball<'a> {
136135
137136 include_target_in_component_name : false ,
138137 is_preview : false ,
139- delete_temp_dir : true ,
140138 }
141139 }
142140
@@ -198,8 +196,7 @@ impl<'a> Tarball<'a> {
198196 self . builder . cp_r ( src. as_ref ( ) , & dest) ;
199197 }
200198
201- pub ( crate ) fn persist_work_dir ( & mut self ) -> PathBuf {
202- self . delete_temp_dir = false ;
199+ pub ( crate ) fn work_dir ( & self ) -> PathBuf {
203200 self . temp_dir . clone ( )
204201 }
205202
@@ -295,9 +292,6 @@ impl<'a> Tarball<'a> {
295292 build_cli ( & self , & mut cmd) ;
296293 cmd. arg ( "--work-dir" ) . arg ( & self . temp_dir ) ;
297294 self . builder . run ( & mut cmd) ;
298- if self . delete_temp_dir {
299- t ! ( std:: fs:: remove_dir_all( & self . temp_dir) ) ;
300- }
301295
302296 crate :: dist:: distdir ( self . builder ) . join ( format ! ( "{}.tar.gz" , package_name) )
303297 }
You can’t perform that action at this time.
0 commit comments