summaryrefslogtreecommitdiffstats
path: root/bin
diff options
context:
space:
mode:
authorEmilio Pozuelo Monfort <pochu@debian.org>2023-06-21 16:29:58 +0200
committerEmilio Pozuelo Monfort <pochu@debian.org>2023-06-27 10:33:04 +0200
commit8f4fad9a4d03699e74808ae21fdc2fa7b0e2a161 (patch)
tree29c945a2df68b9f529902fda88d5fa822d84eb61 /bin
parent242c95bd11dc1fb5c79156771ec7634d981351ae (diff)
check-new-issues: fix performance issue with wnpp autocompletion
Diffstat (limited to 'bin')
-rwxr-xr-xbin/check-new-issues3
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()

© 2014-2024 Faster IT GmbH | imprint | privacy policy