File tree 2 files changed +3
-9
lines changed 2 files changed +3
-9
lines changed Original file line number Diff line number Diff line change @@ -1316,8 +1316,8 @@ impl Step for Extended {
1316
1316
tarballs. push ( mingw_installer. unwrap ( ) ) ;
1317
1317
}
1318
1318
1319
- let mut tarball = Tarball :: new ( builder, "rust" , & target. triple ) ;
1320
- let work = tarball. persist_work_dir ( ) ;
1319
+ let tarball = Tarball :: new ( builder, "rust" , & target. triple ) ;
1320
+ let work = tarball. work_dir ( ) ;
1321
1321
tarball. combine ( & tarballs) ;
1322
1322
1323
1323
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> {
97
97
98
98
include_target_in_component_name : bool ,
99
99
is_preview : bool ,
100
- delete_temp_dir : bool ,
101
100
}
102
101
103
102
impl < ' a > Tarball < ' a > {
@@ -136,7 +135,6 @@ impl<'a> Tarball<'a> {
136
135
137
136
include_target_in_component_name : false ,
138
137
is_preview : false ,
139
- delete_temp_dir : true ,
140
138
}
141
139
}
142
140
@@ -198,8 +196,7 @@ impl<'a> Tarball<'a> {
198
196
self . builder . cp_r ( src. as_ref ( ) , & dest) ;
199
197
}
200
198
201
- pub ( crate ) fn persist_work_dir ( & mut self ) -> PathBuf {
202
- self . delete_temp_dir = false ;
199
+ pub ( crate ) fn work_dir ( & self ) -> PathBuf {
203
200
self . temp_dir . clone ( )
204
201
}
205
202
@@ -295,9 +292,6 @@ impl<'a> Tarball<'a> {
295
292
build_cli ( & self , & mut cmd) ;
296
293
cmd. arg ( "--work-dir" ) . arg ( & self . temp_dir ) ;
297
294
self . builder . run ( & mut cmd) ;
298
- if self . delete_temp_dir {
299
- t ! ( std:: fs:: remove_dir_all( & self . temp_dir) ) ;
300
- }
301
295
302
296
crate :: dist:: distdir ( self . builder ) . join ( format ! ( "{}.tar.gz" , package_name) )
303
297
}
You can’t perform that action at this time.
0 commit comments