File tree Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Expand file tree Collapse file tree 1 file changed +11
-1
lines changed Original file line number Diff line number Diff line change @@ -560,8 +560,18 @@ pub fn produce_install_only(tar_zst_path: &Path) -> Result<PathBuf> {
560560 . map ( |x| x. to_string ( ) )
561561 . collect :: < Vec < _ > > ( ) ;
562562 let parts_len = name_parts. len ( ) ;
563+ let flavor_idx = parts_len - 2 ;
563564
564- name_parts[ parts_len - 2 ] = "install_only" . to_string ( ) ;
565+ if name_parts[ flavor_idx] . contains ( "freethreaded" ) {
566+ name_parts
567+ . splice (
568+ flavor_idx..flavor_idx + 1 ,
569+ [ "freethreaded" . to_string ( ) , "install_only" . to_string ( ) ] ,
570+ )
571+ . for_each ( drop) ;
572+ } else {
573+ name_parts[ flavor_idx] = "install_only" . to_string ( ) ;
574+ }
565575
566576 let install_only_name = name_parts. join ( "-" ) ;
567577 let install_only_name = install_only_name. replace ( ".tar.zst" , ".tar.gz" ) ;
You can’t perform that action at this time.
0 commit comments