[mailman3] Add more info to generate_search_index script
Add information about number of remaining mailing lists to process to script output. Signed-off-by: Michal Konecny <mkonecny@redhat.com>
This commit is contained in:
parent
be2edf7b47
commit
39d7b07b0c
1 changed files with 4 additions and 0 deletions
|
@ -38,6 +38,10 @@ def generate_index(mailinglists: list) -> None:
|
|||
"""Generate indexes for the lists one by one."""
|
||||
for mailinglist in mailinglists:
|
||||
print("Generating index for {0}".format(mailinglist))
|
||||
print("Generating index for {0} [{1}/{2}]".format(
|
||||
mailinglist, mailinglists.index(mailinglist) + 1, len(mailinglists)
|
||||
)
|
||||
)
|
||||
call(["sudo", "-u", MAILMAN_USER, "mailman-web", "update_index_one_list", mailinglist])
|
||||
print("Finished generating index for {0}".format(mailinglist))
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue