diff options
author | Emilio Pozuelo Monfort <pochu@debian.org> | 2023-06-21 16:29:58 +0200 |
---|---|---|
committer | Emilio Pozuelo Monfort <pochu@debian.org> | 2023-06-27 10:33:04 +0200 |
commit | 8f4fad9a4d03699e74808ae21fdc2fa7b0e2a161 (patch) | |
tree | 29c945a2df68b9f529902fda88d5fa822d84eb61 | |
parent | 242c95bd11dc1fb5c79156771ec7634d981351ae (diff) |
check-new-issues: fix performance issue with wnpp autocompletion
-rwxr-xr-x | bin/check-new-issues | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/bin/check-new-issues b/bin/check-new-issues index f87ecb7f7f..fe0ceed8a0 100755 --- a/bin/check-new-issues +++ b/bin/check-new-issues @@ -370,6 +370,7 @@ ignore_missing_bugs = read_packages_file(removed_packages_file) ignore_missing_bugs += read_packages_file(ignore_bug_file) seen_pkgs = {} +wnpp_candidates = list(wnpp_to_candidates()) for name, cve in cves.items(): if not args.list: @@ -713,7 +714,7 @@ def complete_line(text, state): # autocomplete - pkg entries if len(words) == 1 or (len(words) == 2 and being_completed): candidates = list(seen_pkgs.keys()) - candidates += list(wnpp_to_candidates()) + candidates += wnpp_candidates elif (len(words) == 2 and not being_completed) \ or (len(words) == 3 and being_completed): candidates = '<end-of-life> <unfixed> <removed> <not-affected> <ignored> <postponed> <unimportant> <itp>'.split() |