@@ -207,14 +207,16 @@ export default class {
207
207
fs . writeFileSync ( this . root + `/dists/${ codename } /${ this . config . component } /binary-all/Packages` , res . data . stdout ) ;
208
208
209
209
// make "Packages.gz"
210
- pipeline (
211
- fs . createReadStream ( this . root + `/dists/${ codename } /${ this . config . component } /binary-all/Packages` ) ,
212
- zlib . createGzip ( {
213
- "level" : 9 ,
214
- } ) ,
215
- fs . createWriteStream ( this . root + `/dists/${ codename } /${ this . config . component } /binary-all/Packages.gz` ) ,
216
- e => { }
217
- ) ;
210
+ await new Promise ( resolve => {
211
+ pipeline (
212
+ fs . createReadStream ( this . root + `/dists/${ codename } /${ this . config . component } /binary-all/Packages` ) ,
213
+ zlib . createGzip ( {
214
+ "level" : 9 ,
215
+ } ) ,
216
+ fs . createWriteStream ( this . root + `/dists/${ codename } /${ this . config . component } /binary-all/Packages.gz` ) ,
217
+ e => resolve
218
+ ) ;
219
+ } ) ;
218
220
219
221
const architectures = glob ( "binary-*" , {
220
222
"cwd" : this . root + `/dists/${ codename } /${ this . config . component } ` ,
@@ -244,14 +246,16 @@ export default class {
244
246
fs . writeFileSync ( this . root + `/dists/${ codename } /${ this . config . component } /binary-${ architecture } /Packages` , res . data . stdout ) ;
245
247
246
248
// make "Packages.gz"
247
- pipeline (
248
- fs . createReadStream ( this . root + `/dists/${ codename } /${ this . config . component } /binary-${ architecture } /Packages` ) ,
249
- zlib . createGzip ( {
250
- "level" : 9 ,
251
- } ) ,
252
- fs . createWriteStream ( this . root + `/dists/${ codename } /${ this . config . component } /binary-${ architecture } /Packages.gz` ) ,
253
- e => { }
254
- ) ;
249
+ await new Promise ( resolve => {
250
+ pipeline (
251
+ fs . createReadStream ( this . root + `/dists/${ codename } /${ this . config . component } /binary-${ architecture } /Packages` ) ,
252
+ zlib . createGzip ( {
253
+ "level" : 9 ,
254
+ } ) ,
255
+ fs . createWriteStream ( this . root + `/dists/${ codename } /${ this . config . component } /binary-${ architecture } /Packages.gz` ) ,
256
+ e => resolve
257
+ ) ;
258
+ } ) ;
255
259
}
256
260
257
261
fs . writeFileSync (
0 commit comments