Skip to content

Commit d5b31fe

Browse files
committed
rebase & fixup
1 parent e67fbc0 commit d5b31fe

File tree

2 files changed

+8
-6
lines changed

2 files changed

+8
-6
lines changed

src/lib/Sympa/List.pm

+7-5
Original file line numberDiff line numberDiff line change
@@ -4768,7 +4768,7 @@ sub _load_include_admin_user_file {
47684768
}
47694769

47704770
unless ($paragraph[$i] =~
4771-
/^\s*$key\s+($pinfo->{$pname}{'file_format'}{$key}{'file_format'})\s*$/i
4771+
/^\s*$key(?:\s+($pinfo->{$pname}{'file_format'}{$key}{'file_format'}))?\s*$/i
47724772
) {
47734773
chomp($paragraph[$i]);
47744774
$log->syslog('info',
@@ -4790,9 +4790,11 @@ sub _load_include_admin_user_file {
47904790
unless (defined $hash{$k}) {
47914791
if (defined $pinfo->{$pname}{'file_format'}{$k}{'default'}
47924792
) {
4793-
$hash{$k} =
4794-
$self->_load_list_param($k, 'default',
4795-
$pinfo->{$pname}{'file_format'}{$k});
4793+
$hash{$k} = $self->_load_list_param(
4794+
$k,
4795+
$pinfo->{$pname}{'file_format'}{$k}{'default'},
4796+
$pinfo->{$pname}{'file_format'}{$k}
4797+
);
47964798
}
47974799
}
47984800
## Required fields
@@ -4824,7 +4826,7 @@ sub _load_include_admin_user_file {
48244826
}
48254827

48264828
unless ($paragraph[0] =~
4827-
/^\s*$pname\s+($pinfo->{$pname}{'file_format'})\s*$/i) {
4829+
/^\s*$pname(?:\s+($pinfo->{$pname}{'file_format'}))?\s*$/i) {
48284830
chomp($paragraph[0]);
48294831
$log->syslog('info', 'Bad entry "%s" in %s',
48304832
$paragraph[0], $filename);

src/lib/Sympa/Upgrade.pm

+1-1
Original file line numberDiff line numberDiff line change
@@ -2025,7 +2025,7 @@ sub upgrade {
20252025

20262026
# included_* and include_sources_* were deprecated and inclusion_*
20272027
# was introduced in subscriber_table and admin_table.
2028-
if (lower_version($previous_version, '6.2.41b.1')) {
2028+
if (lower_version($previous_version, '6.2.41b.2')) {
20292029
my $sdm = Sympa::DatabaseManager->instance;
20302030

20312031
$log->syslog('notice', 'Upgrading subscriber_table and admin_table.');

0 commit comments

Comments
 (0)