@@ -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
}
@@ -616,8 +617,9 @@ if ($main::options{'dump'}) {
616
617
}
617
618
my $family ;
618
619
unless ($family = Sympa::Family-> new($family_name , $robot )) {
619
- print STDERR
620
- " The family $family_name does not exist, impossible instantiation\n " ;
620
+ printf STDERR
621
+ " The family %s does not exist, impossible instantiation\n " ,
622
+ $family_name ;
621
623
exit 1;
622
624
}
623
625
@@ -627,7 +629,8 @@ if ($main::options{'dump'}) {
627
629
}
628
630
629
631
unless (-r $main::options {' input_file' }) {
630
- print STDERR " Unable to read $main::options {'input_file'} file" ;
632
+ printf STDERR
633
+ " Unable to read %s file\n " , $main::options {' input_file' };
631
634
exit 1;
632
635
}
633
636
@@ -666,7 +669,7 @@ if ($main::options{'dump'}) {
666
669
667
670
my $family ;
668
671
unless ($family = Sympa::Family-> new($family_name , $robot )) {
669
- print STDERR
672
+ printf STDERR
670
673
" The family %s does not exist, impossible to add a list\n " ,
671
674
$family_name ;
672
675
exit 1;
@@ -705,7 +708,7 @@ if ($main::options{'dump'}) {
705
708
scenario_context => {skip => 1},
706
709
);
707
710
unless ($spindle and $spindle -> spin and _report($spindle )) {
708
- print STDERR " Impossible to add a list %s to the family %s \n " ,
711
+ printf STDERR " Impossible to add a list %s to the family %s \n " ,
709
712
$hash -> {config }{listname }, $family_name ;
710
713
exit 1;
711
714
}
@@ -724,7 +727,8 @@ if ($main::options{'dump'}) {
724
727
my $list = Sympa::List-> new($main::options {' sync_include' });
725
728
726
729
unless (defined $list ) {
727
- print STDERR " Incorrect list name $main::options {'sync_include'}\n " ;
730
+ printf STDERR
731
+ " Incorrect list name %s \n " , $main::options {' sync_include' };
728
732
exit 1;
729
733
}
730
734
@@ -767,7 +771,7 @@ if ($main::options{'dump'}) {
767
771
exit 0;
768
772
769
773
} elsif ($main::options {' upgrade_shared' }) {
770
- printf STDERR " Obsoleted. Use upgrade_shared_repository.pl.\n " ;
774
+ print STDERR " Obsoleted. Use upgrade_shared_repository.pl.\n " ;
771
775
772
776
exit 0;
773
777
} elsif ($main::options {' reload_list_config' }) {
@@ -777,8 +781,8 @@ if ($main::options{'dump'}) {
777
781
Sympa::List-> new($main::options {' list' }, ' ' ,
778
782
{' reload_config' => 1, ' force_sync_admin' => 1});
779
783
unless (defined $list ) {
780
- print STDERR
781
- " Error : incorrect list name '$main::options {'list'}' \n " ;
784
+ printf STDERR
785
+ " Error : incorrect list name '%s ' \n " , $main::options {' list' };
782
786
exit 1;
783
787
}
784
788
} else {
@@ -806,8 +810,9 @@ elsif ($main::options{'modify_list'}) {
806
810
807
811
my $family ;
808
812
unless ($family = Sympa::Family-> new($family_name , $robot )) {
809
- print STDERR
810
- " The family $family_name does not exist, impossible to modify the list.\n " ;
813
+ printf STDERR
814
+ " The family %s does not exist, impossible to modify the list.\n " ,
815
+ $family_name ;
811
816
exit 1;
812
817
}
813
818
@@ -817,7 +822,8 @@ elsif ($main::options{'modify_list'}) {
817
822
}
818
823
819
824
unless (open INFILE, $main::options {' input_file' }) {
820
- print STDERR " Unable to open $main::options {'input_file'}) file" ;
825
+ printf STDERR
826
+ " Unable to open %s file\n " , $main::options {' input_file' };
821
827
exit 1;
822
828
}
823
829
@@ -855,8 +861,9 @@ elsif ($main::options{'close_family'}) {
855
861
}
856
862
my $family ;
857
863
unless ($family = Sympa::Family-> new($family_name , $robot )) {
858
- print STDERR
859
- " The family $family_name does not exist, impossible family closure\n " ;
864
+ printf STDERR
865
+ " The family %s does not exist, impossible family closure\n " ,
866
+ $family_name ;
860
867
exit 1;
861
868
}
862
869
@@ -875,7 +882,7 @@ elsif ($main::options{'sync_list_db'}) {
875
882
if (length ($listname ) > 1) {
876
883
my $list = Sympa::List-> new($listname );
877
884
unless (defined $list ) {
878
- print STDOUT " \n List '$listname ' does not exist. \n " ;
885
+ printf STDOUT " \n List '%s ' does not exist. \n " , $listname ;
879
886
exit 1;
880
887
}
881
888
$list -> _update_list_db;
0 commit comments