create_manpage_completions: Also clear already_output_completions

Prevents issues if we try to read a manpage twice - in which case we
could fall back to another parser, creating different results.

Fixes #9787
This commit is contained in:
Fabian Boehm 2023-05-12 16:35:05 +02:00
parent 56743ae770
commit 5f672ece84

View file

@ -837,6 +837,8 @@ def parse_manpage_at_path(manpage_path, output_directory):
# Clear the output list # Clear the output list
built_command_output[:] = [] built_command_output[:] = []
global already_output_completions
already_output_completions = {}
if DEROFF_ONLY: if DEROFF_ONLY:
parsers = [TypeDeroffManParser()] parsers = [TypeDeroffManParser()]