From 4d5648799f7f5a5e70049f92e924d40ad94cf63c Mon Sep 17 00:00:00 2001 From: Emilio Pozuelo Monfort Date: Thu, 5 Oct 2023 13:33:01 +0200 Subject: bin/check-new-issues: add back fallback to NFU command If no explicit command is entered, it is assumed to be NFU. This adds back that compatibility with the Perl version. --- bin/check-new-issues | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'bin') diff --git a/bin/check-new-issues b/bin/check-new-issues index c776a80b4e..8c5ea53097 100755 --- a/bin/check-new-issues +++ b/bin/check-new-issues @@ -315,7 +315,8 @@ def print_commands(): * - package-entry to add an entry for "package" and launch an editor (e.g. - poppler ) * n to mark the issue as NOT-FOR-US: * q to save and quit - * CTRL-C to quit without saving''') + * CTRL-C to quit without saving + * everything else is inserted as product name for a NOT-FOR-US''') parser = argparse.ArgumentParser(description="review new CVE entries") parser.add_argument('-l', '--list', action='store_true', @@ -705,7 +706,10 @@ def present_issue(name): print_cve(cves[name]) break else: - print("unknown command") + set_cve_nfu(name, line) + print("New entry set to:") + print_cve(cves[name]) + break return quit -- cgit v1.2.3