Skip to content

Commit

Permalink
Merge pull request #787 from racke/topic/cli-sync-include by racke
Browse files Browse the repository at this point in the history
Various improvements to --sync-include output
  • Loading branch information
ikedas authored Nov 17, 2019
2 parents c319e76 + e3ee366 commit 5808dba
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/sbin/sympa.pl.in
Original file line number Diff line number Diff line change
Expand Up @@ -885,12 +885,18 @@ if ($main::options{'dump'} or $main::options{'dump_users'}) {
exit 1;
}

unless ($list->has_include_data_sources) {
printf STDERR "No data sources defined for inclusion into list %s.\n",
$list->get_id;
exit 1;
}

unless (defined $list->sync_include()) {
print STDERR "Failed to synchronize list members\n";
exit 1;
}

printf "Members of list %s have been successfully update.\n",
printf "Members of list %s have been successfully updated.\n",
$list->get_id;
exit 0;
## Migration from one version to another
Expand Down

0 comments on commit 5808dba

Please sign in to comment.