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
@@ -299,9 +296,6 @@ impl<'a> Tarball<'a> {
299
296
cmd. arg ( "--compression-formats" ) . arg ( formats. join ( "," ) ) ;
300
297
}
301
298
self . builder . run ( & mut cmd) ;
302
- if self . delete_temp_dir {
303
- t ! ( std:: fs:: remove_dir_all( & self . temp_dir) ) ;
304
- }
305
299
306
300
// Use either the first compression format defined, or "gz" as the default.
307
301
let ext = self
You can’t perform that action at this time.
0 commit comments