diff options
author | Emilio Pozuelo Monfort <pochu@debian.org> | 2023-10-05 13:33:01 +0200 |
---|---|---|
committer | Emilio Pozuelo Monfort <pochu@debian.org> | 2023-10-05 13:33:01 +0200 |
commit | 4d5648799f7f5a5e70049f92e924d40ad94cf63c (patch) | |
tree | c3dd17d8773a6aee70a5074cae29dc7235dc49bc | |
parent | 6c5471762f58f2707b872ee99fef70e12b60763c (diff) |
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.
-rwxr-xr-x | bin/check-new-issues | 8 |
1 files changed, 6 insertions, 2 deletions
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 <unfixed>) * n <name> to mark the issue as NOT-FOR-US: <name> * 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 |