@@ -161,6 +161,8 @@ impl Context {
161
161
// to do. This represents a scenario where changes have been merged to
162
162
// the stable/beta branch but the version bump hasn't happened yet.
163
163
self . download_artifacts ( & rev) ?;
164
+ // Generate recompressed artifacts from the input set.
165
+ self . recompress ( & self . dl_dir ( ) ) ?;
164
166
// The bypass_startup_checks condition is after the function call since we need that
165
167
// function to run even if we wan to discard its output (it fetches and stores the current
166
168
// version we're about to release).
@@ -366,31 +368,18 @@ impl Context {
366
368
// 2. We're making a stable release. The stable release is first signed
367
369
// with the dev key and then it's signed with the prod key later. We
368
370
// want the prod key to overwrite the dev key signatures.
369
- //
370
- // Also, collect paths that need to be recompressed
371
- let mut to_recompress = Vec :: new ( ) ;
372
371
for file in dl. read_dir ( ) ? {
373
372
let file = file?;
374
373
let path = file. path ( ) ;
375
374
match path. extension ( ) . and_then ( |s| s. to_str ( ) ) {
376
- // Store off the input files for potential recompression.
377
- Some ( "xz" ) => {
378
- to_recompress. push ( path. to_path_buf ( ) ) ;
379
- }
380
375
// Delete signature/hash files...
381
376
Some ( "asc" ) | Some ( "sha256" ) => {
382
377
fs:: remove_file ( & path) ?;
383
378
}
384
- Some ( "gz" ) if self . config . recompress_gz => {
385
- fs:: remove_file ( & path) ?;
386
- }
387
379
_ => { }
388
380
}
389
381
}
390
382
391
- // Generate recompressed artifacts from the input set.
392
- self . recompress ( to_recompress) ?;
393
-
394
383
Ok ( ( ) )
395
384
}
396
385
0 commit comments