File tree Expand file tree Collapse file tree 1 file changed +22
-11
lines changed Expand file tree Collapse file tree 1 file changed +22
-11
lines changed Original file line number Diff line number Diff line change @@ -94,6 +94,8 @@ pub async fn command_fetch_release_distributions(args: &ArgMatches) -> Result<()
94
94
95
95
let mut buffered = futures:: stream:: iter ( fs) . buffer_unordered ( 4 ) ;
96
96
97
+ let mut install_paths = vec ! [ ] ;
98
+
97
99
while let Some ( res) = buffered. next ( ) . await {
98
100
let data = res?;
99
101
@@ -142,24 +144,33 @@ pub async fn command_fetch_release_distributions(args: &ArgMatches) -> Result<()
142
144
println ! ( "releasing {}" , name) ;
143
145
144
146
if build_suffix == release. install_only_suffix {
145
- println ! ( "producing install_only archive from {}" , name) ;
146
-
147
- let dest_path = produce_install_only ( & dest_path) ?;
148
-
149
- println ! (
150
- "releasing {}" ,
151
- dest_path
152
- . file_name( )
153
- . expect( "should have file name" )
154
- . to_string_lossy( )
155
- ) ;
147
+ install_paths. push ( dest_path) ;
156
148
}
157
149
} else {
158
150
println ! ( "{} does not match any registered release triples" , name) ;
159
151
}
160
152
}
161
153
}
162
154
155
+ for path in install_paths {
156
+ println ! (
157
+ "producing install_only archive from {}" ,
158
+ path. file_name( )
159
+ . expect( "should have file name" )
160
+ . to_string_lossy( )
161
+ ) ;
162
+
163
+ let dest_path = produce_install_only ( & path) ?;
164
+
165
+ println ! (
166
+ "releasing {}" ,
167
+ dest_path
168
+ . file_name( )
169
+ . expect( "should have file name" )
170
+ . to_string_lossy( )
171
+ ) ;
172
+ }
173
+
163
174
Ok ( ( ) )
164
175
}
165
176
You can’t perform that action at this time.
0 commit comments