File tree Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Expand file tree Collapse file tree 1 file changed +16
-7
lines changed Original file line number Diff line number Diff line change @@ -720,13 +720,22 @@ impl Context {
720
720
. upload_addr
721
721
. trim_start_matches ( "https://" )
722
722
. trim_start_matches ( "http://" ) ;
723
- manifest. write_all (
724
- format ! (
725
- "{}/{}/{}/channel-rust-{}.toml\n " ,
726
- upload_addr, self . config. upload_dir, self . date, self . config. channel
727
- )
728
- . as_bytes ( ) ,
729
- ) ?;
723
+
724
+ // Stable and beta releases include multiple manifests for the same release. Make sure to
725
+ // write all of them in manifests.txt.
726
+ for entry in self . dl_dir ( ) . read_dir ( ) ? {
727
+ let os_name = entry?. file_name ( ) ;
728
+ let name = os_name. to_str ( ) . expect ( "non utf-8 file" ) ;
729
+ if name. starts_with ( "channel-rust-" ) && name. ends_with ( ".toml" ) {
730
+ manifest. write_all (
731
+ format ! (
732
+ "{upload_addr}/{}/{}/{name}\n " ,
733
+ self . config. upload_dir, self . date,
734
+ )
735
+ . as_bytes ( ) ,
736
+ ) ?;
737
+ }
738
+ }
730
739
731
740
run ( self
732
741
. aws_s3api ( )
You can’t perform that action at this time.
0 commit comments