@@ -461,6 +461,14 @@ function download_module() {
461
461
462
462
mvm . base_path . forEach ( bp => {
463
463
coroutine . parallel ( untar_files , ( file ) => {
464
+ if ( file . typeflag == 1 ) {
465
+ const read_files = untar_files . filter ( f => f . filename == file . linkname ) ;
466
+ file . typeflag = "0" ;
467
+ file . linkname = "" ;
468
+ file . fileData = read_files [ 0 ] . fileData ;
469
+ file . size = read_files [ 0 ] . size ;
470
+ }
471
+
464
472
const relpath = file . filename . slice ( archive_root_name . length ) ;
465
473
466
474
if ( ! relpath ) return ;
@@ -519,7 +527,7 @@ function download_module() {
519
527
}
520
528
521
529
if ( mvm . binary ) {
522
- console . error ( mvm . binary . hosted_tarball ) ;
530
+ install_log ( "[install addon]" , mvm . binary . hosted_tarball ) ;
523
531
const binary_r = http_get ( mvm . binary . hosted_tarball ) ;
524
532
525
533
if ( binary_r . statusCode !== 200 ) {
@@ -545,13 +553,22 @@ function download_module() {
545
553
546
554
mvm . base_path . forEach ( bp => {
547
555
coroutine . parallel ( untar_files , ( file ) => {
556
+ if ( file . typeflag == 1 ) {
557
+ const read_files = untar_files . filter ( f => f . filename == file . linkname ) ;
558
+ file . typeflag = "0" ;
559
+ file . linkname = "" ;
560
+ file . fileData = read_files [ 0 ] . fileData ;
561
+ file . size = read_files [ 0 ] . size ;
562
+ }
563
+
548
564
var bpath = path . join ( bp , mvm . name , mvm . binary . module_path , file . filename . slice ( archive_root_name . length ) ) ;
549
565
helpers_fs . mkdirp ( path . dirname ( bpath ) ) ;
550
566
fs . writeFile ( bpath , file . fileData ) ;
551
567
fs . chmod ( bpath , parseInt ( file . mode , 8 ) ) ;
552
- install_log ( "extract addons:" , bpath ) ;
553
568
} )
554
569
} ) ;
570
+
571
+ install_log ( "extract addon:" , mvm . binary . hosted_tarball ) ;
555
572
}
556
573
557
574
if ( mvm . bin ) {
0 commit comments