diff options
author | Moritz Muehlenhoff <jmm@debian.org> | 2021-03-05 11:18:23 +0100 |
---|---|---|
committer | Moritz Muehlenhoff <jmm@debian.org> | 2021-03-05 11:18:23 +0100 |
commit | fd8635a47a018bbd16a1dd6543b67d67c98c3fb4 (patch) | |
tree | dac50735013c831d2327b3848f0cf34613c82da6 | |
parent | cab0a4925702c7f435d61310a6ac1b4c0c81e533 (diff) |
cvelist.el: New function to insert no-dsa comment based on the current source entry.
-rw-r--r-- | conf/cvelist.el | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/conf/cvelist.el b/conf/cvelist.el index dcca731fbb..2c89c11ce5 100644 --- a/conf/cvelist.el +++ b/conf/cvelist.el @@ -25,6 +25,16 @@ (interactive) (insert "\tNOTE: ")) +; TODO: Read supported distros from central config and prompt for applicable suites +(defun debian-cvelist-insert-nodsa () + "Insert no-dsa comment based on the current source entry." + (interactive) + (setq reason (read-string "Reason for no-dsa: " "Minor issue")) + (setq srcpkg (thing-at-point 'symbol)) + (next-line) + (beginning-of-line) + (insert (concat "\t[buster] - " srcpkg " <no-dsa> (" reason ")\n" ))) + (defun debian-cvelist-cvesearch () "Look up a CVE ID at the MITRE website." (interactive) @@ -35,6 +45,7 @@ (define-key map (kbd "C-c C-f") 'debian-cvelist-insert-not-for-us) (define-key map (kbd "C-c C-n") 'debian-cvelist-insert-note) (define-key map (kbd "C-c C-c") 'debian-cvelist-cvesearch) + (define-key map (kbd "C-c C-l") 'debian-cvelist-insert-nodsa) map) "Keymap for `debian-cvelist-mode'.") |