From ae6f4c1bc9d1eaa4da4602498cdcf7839a7f591e Mon Sep 17 00:00:00 2001 From: Moritz Muehlenhoff Date: Fri, 5 Mar 2021 11:18:23 +0100 Subject: cvelist.el: New function to insert no-dsa comment based on the current source entry. --- conf/cvelist.el | 11 +++++++++++ 1 file changed, 11 insertions(+) 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 " (" 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'.") -- cgit v1.2.3