@@ -162,7 +162,7 @@ if ($main::options{'upgrade_config_location'}) {
162
162
}
163
163
}
164
164
165
- printf " Sympa configuration moved to $dir \n " ;
165
+ printf " Sympa configuration moved to %s \n " , $dir ;
166
166
exit 0;
167
167
} elsif ($main::options {' health_check' }) {
168
168
# # Health check
@@ -385,7 +385,7 @@ if ($main::options{'dump'}) {
385
385
exit 0;
386
386
} elsif ($main::options {' md5_digest' }) {
387
387
my $md5 = Digest::MD5::md5_hex($main::options {' md5_digest' });
388
- printf " md5 digest : $md5 \n " ;
388
+ printf " md5 digest : %s \n " , $md5 ;
389
389
390
390
exit 0;
391
391
} elsif ($main::options {' import' }) {
@@ -420,7 +420,7 @@ if ($main::options{'dump'}) {
420
420
exit ($status ? 0 : 1);
421
421
422
422
} elsif ($main::options {' md5_encode_password' }) {
423
- printf STDERR " Obsoleted. Use upgrade_sympa_password.pl.\n " ;
423
+ print STDERR " Obsoleted. Use upgrade_sympa_password.pl.\n " ;
424
424
425
425
exit 0;
426
426
} elsif ($main::options {' lowercase' }) {
@@ -491,7 +491,8 @@ if ($main::options{'dump'}) {
491
491
my ($listname , $robot_id ) = split /\@/, $main::options {' purge_list' }, 2;
492
492
my $current_list = Sympa::List-> new($listname , $robot_id );
493
493
unless ($current_list ) {
494
- print STDERR " Incorrect list name $main::options {'purge_list'}\n " ;
494
+ printf STDERR
495
+ " Incorrect list name %s \n " , $main::options {' purge_list' };
495
496
exit 1;
496
497
}
497
498
@@ -529,7 +530,7 @@ if ($main::options{'dump'}) {
529
530
$robot_id = $current_list -> {' domain' };
530
531
} else {
531
532
unless (length $robot_id and Conf::valid_robot($robot_id )) {
532
- print STDERR " Unknown robot \" %s \"\n " ;
533
+ printf STDERR " Unknown robot \" %s \"\n " , $robot_id ;
533
534
exit 1;
534
535
}
535
536
}
@@ -543,14 +544,14 @@ if ($main::options{'dump'}) {
543
544
scenario_context => {skip => 1},
544
545
);
545
546
unless ($spindle and $spindle -> spin and _report($spindle )) {
546
- printf STDERR " Could not rename list %s to %s%s \n " ,
547
+ printf STDERR " Could not rename list %s to %s \@ %s \n " ,
547
548
$current_list -> get_id, $listname , $robot_id ;
548
549
exit 1;
549
550
}
550
551
exit 0;
551
552
552
553
} elsif ($main::options {' test_database_message_buffer' }) {
553
- printf
554
+ print
554
555
" Deprecated. Size of messages no longer limited by database packet size.\n " ;
555
556
exit 1;
556
557
} elsif ($main::options {' conf_2_db' }) {
@@ -574,7 +575,7 @@ if ($main::options{'dump'}) {
574
575
}
575
576
my $fh ;
576
577
unless (open $fh , ' <' , $main::options {' input_file' }) {
577
- print STDERR " Unable to open %s : %s \n " , $main::options {' input_file' },
578
+ printf STDERR " Unable to open %s : %s \n " , $main::options {' input_file' },
578
579
$ERRNO ;
579
580
exit 1;
580
581
}
@@ -610,8 +611,9 @@ if ($main::options{'dump'}) {
610
611
}
611
612
my $family ;
612
613
unless ($family = Sympa::Family-> new($family_name , $robot )) {
613
- print STDERR
614
- " The family $family_name does not exist, impossible instantiation\n " ;
614
+ printf STDERR
615
+ " The family %s does not exist, impossible instantiation\n " ,
616
+ $family_name ;
615
617
exit 1;
616
618
}
617
619
@@ -621,7 +623,8 @@ if ($main::options{'dump'}) {
621
623
}
622
624
623
625
unless (-r $main::options {' input_file' }) {
624
- print STDERR " Unable to read $main::options {'input_file'} file" ;
626
+ printf STDERR
627
+ " Unable to read %s file\n " , $main::options {' input_file' };
625
628
exit 1;
626
629
}
627
630
@@ -660,7 +663,7 @@ if ($main::options{'dump'}) {
660
663
661
664
my $family ;
662
665
unless ($family = Sympa::Family-> new($family_name , $robot )) {
663
- print STDERR
666
+ printf STDERR
664
667
" The family %s does not exist, impossible to add a list\n " ,
665
668
$family_name ;
666
669
exit 1;
@@ -693,7 +696,7 @@ if ($main::options{'dump'}) {
693
696
scenario_context => {skip => 1},
694
697
);
695
698
unless ($spindle and $spindle -> spin and _report($spindle )) {
696
- print STDERR " Impossible to add a list %s to the family %s \n " ,
699
+ printf STDERR " Impossible to add a list %s to the family %s \n " ,
697
700
$hash -> {config }{listname }, $family_name ;
698
701
exit 1;
699
702
}
@@ -712,7 +715,8 @@ if ($main::options{'dump'}) {
712
715
my $list = Sympa::List-> new($main::options {' sync_include' });
713
716
714
717
unless (defined $list ) {
715
- print STDERR " Incorrect list name $main::options {'sync_include'}\n " ;
718
+ printf STDERR
719
+ " Incorrect list name %s \n " , $main::options {' sync_include' };
716
720
exit 1;
717
721
}
718
722
@@ -755,7 +759,7 @@ if ($main::options{'dump'}) {
755
759
exit 0;
756
760
757
761
} elsif ($main::options {' upgrade_shared' }) {
758
- printf STDERR " Obsoleted. Use upgrade_shared_repository.pl.\n " ;
762
+ print STDERR " Obsoleted. Use upgrade_shared_repository.pl.\n " ;
759
763
760
764
exit 0;
761
765
} elsif ($main::options {' reload_list_config' }) {
@@ -765,8 +769,8 @@ if ($main::options{'dump'}) {
765
769
Sympa::List-> new($main::options {' list' }, ' ' ,
766
770
{' reload_config' => 1, ' force_sync_admin' => 1});
767
771
unless (defined $list ) {
768
- print STDERR
769
- " Error : incorrect list name '$main::options {'list'}' \n " ;
772
+ printf STDERR
773
+ " Error : incorrect list name '%s ' \n " , $main::options {' list' };
770
774
exit 1;
771
775
}
772
776
} else {
@@ -794,8 +798,9 @@ elsif ($main::options{'modify_list'}) {
794
798
795
799
my $family ;
796
800
unless ($family = Sympa::Family-> new($family_name , $robot )) {
797
- print STDERR
798
- " The family $family_name does not exist, impossible to modify the list.\n " ;
801
+ printf STDERR
802
+ " The family %s does not exist, impossible to modify the list.\n " ,
803
+ $family_name ;
799
804
exit 1;
800
805
}
801
806
@@ -805,7 +810,8 @@ elsif ($main::options{'modify_list'}) {
805
810
}
806
811
807
812
unless (open INFILE, $main::options {' input_file' }) {
808
- print STDERR " Unable to open $main::options {'input_file'}) file" ;
813
+ printf STDERR
814
+ " Unable to open %s file\n " , $main::options {' input_file' };
809
815
exit 1;
810
816
}
811
817
@@ -843,8 +849,9 @@ elsif ($main::options{'close_family'}) {
843
849
}
844
850
my $family ;
845
851
unless ($family = Sympa::Family-> new($family_name , $robot )) {
846
- print STDERR
847
- " The family $family_name does not exist, impossible family closure\n " ;
852
+ printf STDERR
853
+ " The family %s does not exist, impossible family closure\n " ,
854
+ $family_name ;
848
855
exit 1;
849
856
}
850
857
@@ -863,7 +870,7 @@ elsif ($main::options{'sync_list_db'}) {
863
870
if (length ($listname ) > 1) {
864
871
my $list = Sympa::List-> new($listname );
865
872
unless (defined $list ) {
866
- print STDOUT " \n List '$listname ' does not exist. \n " ;
873
+ printf STDOUT " \n List '%s ' does not exist. \n " , $listname ;
867
874
exit 1;
868
875
}
869
876
$list -> _update_list_db;
0 commit comments